线上问题处理,1;部分活动充值,2:玉虚挑战处理
parent
0ae2a25d23
commit
2f8b8d4c2a
|
@ -160,6 +160,18 @@ public class GetPlayerInfoHandler extends BaseHandler{
|
|||
}
|
||||
}
|
||||
|
||||
// 临时代码,处理活动bug, 只有在1月24号当天开服得玩家需要优化
|
||||
if (GameApplication.serverConfig.getOpenTime().equals("2023-01-24 00:00:00")){
|
||||
if (playerInfoManager.getJadeActivityUpdateMark() == 1){
|
||||
Map<Integer, ActivityMission> missionMap = user.getActivityManager().getActivityMissionMap();
|
||||
missionMap.remove(80000);
|
||||
missionMap.remove(8710);
|
||||
missionMap.remove(8203);
|
||||
user.getStoreManager().removeStoreInfo(83);
|
||||
playerInfoManager.setJadeActivityUpdateMark(1);
|
||||
}
|
||||
}
|
||||
|
||||
List<CommonProto.GoodsTypeDuration> goodsTypeDurations = BuyGoodsNewLogic.getGoodsTypeDurations(user);
|
||||
//问卷状态
|
||||
int questState =-1;
|
||||
|
|
|
@ -283,7 +283,6 @@ public class ActivityLogic implements IEventHandler{
|
|||
return;
|
||||
}
|
||||
StoreLogic.initOnsStoereWithTime(user,storeId,startTime,endTime);
|
||||
|
||||
}
|
||||
|
||||
public boolean initAllActivityMission(Map<Integer,ActivityMission> map, int activityId) {
|
||||
|
|
|
@ -255,6 +255,18 @@ public class PlayerManager extends MongoBase {
|
|||
|
||||
private int equipStrongMark;//摘星阁装备强化道具回退标记
|
||||
|
||||
// 主题活动任务更新标记
|
||||
private int jadeActivityUpdateMark;
|
||||
|
||||
public int getJadeActivityUpdateMark() {
|
||||
return jadeActivityUpdateMark;
|
||||
}
|
||||
|
||||
public void setJadeActivityUpdateMark(int jadeActivityUpdateMark) {
|
||||
this.jadeActivityUpdateMark = jadeActivityUpdateMark;
|
||||
updateString("jadeActivityUpdateMark", jadeActivityUpdateMark);
|
||||
}
|
||||
|
||||
/**
|
||||
* bt 特权等级,key:UnlockType, value:等级
|
||||
*/
|
||||
|
|
|
@ -827,7 +827,7 @@ public class FightUtil {
|
|||
int teamId,Map<String, Integer> attackBloodMap,ArenaRecord arenaRecord) {
|
||||
List<CommonProto.FightUnitInfo> heroFightInfos = new ArrayList<>();
|
||||
if(arenaRecord != null){
|
||||
int addforcerpc = crossArenaManager.getTotalForceByTeam().get(teamId);
|
||||
int addforcerpc = crossArenaManager.getTotalForceByTeam().getOrDefault(teamId,0);
|
||||
arenaRecord.getYxldDefForce().add(addforcerpc);
|
||||
arenaRecord.setAttackForce(arenaRecord.getAttackForce() + addforcerpc);
|
||||
}
|
||||
|
@ -889,11 +889,9 @@ public class FightUtil {
|
|||
* @throws Exception
|
||||
*/
|
||||
public static CommonProto.FightTeamInfo makeYuxuCrossPersonData(CSPlayer csPlayer, int teamId, ArenaRecord arenaRecord, CrossArenaManager crossArenaManager) throws Exception {
|
||||
//CSPlayer csPlayer = CrossServiceLogic.getPlayerByRedis(uid);
|
||||
if (csPlayer == null) {
|
||||
return null;//throw new ErrorCodeException(ErrorCode.SERVER_SELF_DEFINE);
|
||||
}
|
||||
List<CommonProto.FightUnitInfo> heroFightInfos = new ArrayList<>();
|
||||
if (GameApplication.serverId == csPlayer.getServerId()) {
|
||||
//本服玩家
|
||||
User user = UserManager.getUser(csPlayer.getUserId());
|
||||
|
|
Loading…
Reference in New Issue