任务更新
parent
6d4134f2b1
commit
fe37d4fb31
|
|
@ -18,6 +18,7 @@ import com.ljsd.jieling.logic.dao.PlayerManager;
|
||||||
import com.ljsd.jieling.logic.dao.UserManager;
|
import com.ljsd.jieling.logic.dao.UserManager;
|
||||||
import com.ljsd.jieling.logic.dao.root.User;
|
import com.ljsd.jieling.logic.dao.root.User;
|
||||||
import com.ljsd.jieling.logic.family.GuildLogic;
|
import com.ljsd.jieling.logic.family.GuildLogic;
|
||||||
|
import com.ljsd.jieling.logic.mission.event.MissionEventDistributor;
|
||||||
import com.ljsd.jieling.logic.store.StoreLogic;
|
import com.ljsd.jieling.logic.store.StoreLogic;
|
||||||
import com.ljsd.jieling.netty.cocdex.PacketNetData;
|
import com.ljsd.jieling.netty.cocdex.PacketNetData;
|
||||||
import com.ljsd.jieling.netty.handler.GameMessageHandler;
|
import com.ljsd.jieling.netty.handler.GameMessageHandler;
|
||||||
|
|
@ -224,6 +225,7 @@ public class SessionManager implements INetSession<ISession>, INetReceived<ISess
|
||||||
MessageUtil.sendHeartBeat(session);
|
MessageUtil.sendHeartBeat(session);
|
||||||
User userInMem = UserManager.getUserInMem(session.getUid());
|
User userInMem = UserManager.getUserInMem(session.getUid());
|
||||||
if(userInMem!=null){
|
if(userInMem!=null){
|
||||||
|
MissionEventDistributor.requestStart();
|
||||||
ActivityLogic.getInstance().updateActivityMissionProgress(userInMem, ActivityType.OnlineReward,0);
|
ActivityLogic.getInstance().updateActivityMissionProgress(userInMem, ActivityType.OnlineReward,0);
|
||||||
try {
|
try {
|
||||||
StoreLogic.checkStoreRefresh(userInMem,userInMem.getStoreManager().getStoreInfoMap());
|
StoreLogic.checkStoreRefresh(userInMem,userInMem.getStoreManager().getStoreInfoMap());
|
||||||
|
|
@ -237,6 +239,7 @@ public class SessionManager implements INetSession<ISession>, INetReceived<ISess
|
||||||
MapLogic.getInstance().endLessClear(session);
|
MapLogic.getInstance().endLessClear(session);
|
||||||
}
|
}
|
||||||
MongoUtil.getLjsdMongoTemplate().lastUpdate();
|
MongoUtil.getLjsdMongoTemplate().lastUpdate();
|
||||||
|
MissionEventDistributor.requestEnd(session,true);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
LOGGER.error("the uid={} processFlush wrong ,e={}",session.getUid(),e);
|
LOGGER.error("the uid={} processFlush wrong ,e={}",session.getUid(),e);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue