合并代码
parent
5a4a0b1534
commit
7e46c61114
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue