|
@@ -36,7 +36,12 @@ class HeroProc {
|
|
}
|
|
}
|
|
|
|
|
|
private static function ResetUnlockHero() {
|
|
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();
|
|
UserProc::updateUserInfo();
|
|
return Resp::ok(array());
|
|
return Resp::ok(array());
|
|
|
|
|