Browse Source

角色卡

cyzhao 9 months ago
parent
commit
86fcce92dc
1 changed files with 6 additions and 1 deletions
  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());