cyzhao před 10 měsíci
rodič
revize
cc9a93a2d4

+ 1 - 1
Gameserver/App/model/Const/GameConfig.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-07-24 16:21:16
+ // 日期: 2024-07-25 17:31:33
 ////////////////////
 
 /**

+ 1 - 1
Gameserver/App/model/Const/sm_waveItem.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-07-24 14:52:28
+ // 日期: 2024-07-24 17:05:48
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_waves.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-07-24 14:52:28
+ // 日期: 2024-07-24 17:05:48
 ////////////////////
 
 

+ 6 - 2
Gameserver/App/process/UserProc.php

@@ -51,8 +51,12 @@ class UserProc {
 
         if($type == 1 && in_array($id,ctx()->privateState->funUnlockRecord)){
             StlUtil::arrayRemove(ctx()->privateState->funUnlockRecord,$id);  
-        } elseif ($type == 2 && in_array($id,ctx()->privateState->skillUnlockRecord)) {
-            StlUtil::arrayRemove(ctx()->privateState->skillUnlockRecord,$id);  
+        } elseif ($type == 2) {
+            $mo = GameConfig::skills_getItem($id);         
+            if(in_array($mo->typeId,ctx()->privateState->skillUnlockRecord)){
+                StlUtil::arrayRemove(ctx()->privateState->skillUnlockRecord,$mo->typeId); 
+            }
+             
         } elseif ($type == 3) {
             ctx()->privateState->oldLevel = 0;
             ctx()->privateState->upLevel = 0;