合并代码
parent
5a4a0b1534
commit
7e46c61114
|
@ -34,13 +34,20 @@ public class HeroStarActivity extends AbstractActivity {
|
||||||
@Override
|
@Override
|
||||||
public void onEvent(IEvent event) throws Exception {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
User user = UserManager.getUser(heroUpStarEvent.getUid());
|
User user = UserManager.getUser(uid);
|
||||||
|
|
||||||
int heroTid = ((HeroUpStarEvent) event).getHeroTid();
|
|
||||||
|
|
||||||
ActivityMission activityMission = user.getActivityManager().getActivityMissionMap().get(id);
|
ActivityMission activityMission = user.getActivityManager().getActivityMissionMap().get(id);
|
||||||
if( null == activityMission){
|
if( null == activityMission){
|
||||||
|
|
Loading…
Reference in New Issue