|
@@ -70,9 +70,11 @@ class HeroProc {
|
|
|
$ins_hero = new Ins_Hero(ctx()->heros->Dic->$heroId);
|
|
|
$ins_hero->Id = $nextHeroId;
|
|
|
ctx()->heros->Dic->$nextHeroId = $ins_hero;
|
|
|
-
|
|
|
+ if(ctx()->heros->CurrentHeroId == $heroId){
|
|
|
+ ctx()->heros->CurrentHeroId = $nextHeroId;
|
|
|
+ }
|
|
|
StlUtil::dictRemove(ctx()->heros->Dic, $heroId);
|
|
|
-
|
|
|
+
|
|
|
UserProc::updateUserInfo();
|
|
|
return Resp::ok(array(
|
|
|
'store' => ctx()->store,
|