Browse Source

引导修改

cyzhao 5 months ago
parent
commit
b373c7a14c
1 changed files with 7 additions and 3 deletions
  1. 7 3
      Gameserver/App/process/UserProc.php

+ 7 - 3
Gameserver/App/process/UserProc.php

@@ -53,9 +53,9 @@ class UserProc {
     public static function clearGuideInfo(){
         list($id) = req()->paras;                                               # 参数:引导模块
                                       
-        if(in_array($id,ctx()->privateState->funUnlockRecord_3)){
-            StlUtil::arrayRemove(ctx()->privateState->funUnlockRecord_3, $id); 
-        }
+//        if(in_array($id,ctx()->privateState->funUnlockRecord_3)){
+//            StlUtil::arrayRemove(ctx()->privateState->funUnlockRecord_3, $id); 
+//        }
                    
         UserProc::updateUserInfo();                                             # 回写数据
         return Resp::ok(array());
@@ -72,6 +72,10 @@ class UserProc {
         $forceSave = $guide_type_forceSave == true?1:0;
         ctx()->base(true)->guide_type_forceSave = $forceSave;
                
+        if(in_array($guideType,ctx()->privateState->funUnlockRecord_3) && $guide_type_forceSave==true){
+            StlUtil::arrayRemove(ctx()->privateState->funUnlockRecord_3, $guideType); 
+        }
+        
         UserProc::updateUserInfo();                                             # 回写数据
         return Resp::ok(array());
     }