合并代码

back_recharge
jiahuiwen 2021-09-24 15:42:34 +08:00
parent 5a4a0b1534
commit 7e46c61114
1 changed files with 12 additions and 5 deletions

View File

@ -34,13 +34,20 @@ public class HeroStarActivity extends AbstractActivity {
@Override
public void onEvent(IEvent event) throws Exception {
HeroUpStarEvent heroUpStarEvent = (HeroUpStarEvent) event;
if (!(event instanceof HeroUpStarEvent)) {
int uid = 0;
int heroTid = 0;
if (event instanceof HeroUpStarEvent) {
heroTid = ((HeroUpStarEvent) event).getHeroTid();
uid = ((HeroUpStarEvent) event).getUid();
}
else if (event instanceof FiveStarGetEvent){
heroTid = ((FiveStarGetEvent) event).getHeroid();
uid = ((FiveStarGetEvent) event).getUid();
}else {
return;
}
User user = UserManager.getUser(heroUpStarEvent.getUid());
int heroTid = ((HeroUpStarEvent) event).getHeroTid();
User user = UserManager.getUser(uid);
ActivityMission activityMission = user.getActivityManager().getActivityMissionMap().get(id);
if( null == activityMission){