瀏覽代碼

角色卡

cyzhao 9 月之前
父節點
當前提交
86fcce92dc
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      Gameserver/App/process/HeroProc.php

+ 6 - 1
Gameserver/App/process/HeroProc.php

@@ -36,7 +36,12 @@ class HeroProc {
     }
     
     private static function ResetUnlockHero() {
-        ctx()->heros->roleCardUnlockHeroList = array();
+        list($heroId) = req()->paras;
+        
+        if(in_array($heroId, ctx()->heros->roleCardUnlockHeroList)){
+            StlUtil::arrayRemove(ctx()->heros->roleCardUnlockHeroList, $heroId);
+        }
+              
         UserProc::updateUserInfo();
         return Resp::ok(array());