generated from root/miduo_server
增加礼物推送礼包
parent
d1b932ba6d
commit
7d29ea90f1
|
|
@ -229,6 +229,11 @@ public class GetPlayerInfoHandler extends BaseHandler {
|
||||||
PlayerLogic.getInstance().dealGooglePreReward(user);
|
PlayerLogic.getInstance().dealGooglePreReward(user);
|
||||||
//处理F5浮窗礼包奖励
|
//处理F5浮窗礼包奖励
|
||||||
PlayerLogic.getInstance().dealF5Gift(user);
|
PlayerLogic.getInstance().dealF5Gift(user);
|
||||||
|
Calendar calendar = Calendar.getInstance();
|
||||||
|
int hour = calendar.get(Calendar.HOUR_OF_DAY);
|
||||||
|
int minute = calendar.get(Calendar.MINUTE);
|
||||||
|
int w = calendar.get(Calendar.DAY_OF_WEEK) - 1;
|
||||||
|
BuyGoodsLogic.openPush(userId,PushRechargeType.week_day.getType(),w,w);
|
||||||
int trainTaskCurLevel = MissionLoigc.getTrainTaskCurLevel(user.getUserMissionManager());
|
int trainTaskCurLevel = MissionLoigc.getTrainTaskCurLevel(user.getUserMissionManager());
|
||||||
PlayerInfoProto.GetPlayerInfoResponse getPlayerInfoResponse
|
PlayerInfoProto.GetPlayerInfoResponse getPlayerInfoResponse
|
||||||
= PlayerInfoProto.GetPlayerInfoResponse.newBuilder()
|
= PlayerInfoProto.GetPlayerInfoResponse.newBuilder()
|
||||||
|
|
|
||||||
|
|
@ -3005,6 +3005,15 @@ public class BuyGoodsLogic {
|
||||||
LOGGER.info("dddd");
|
LOGGER.info("dddd");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
}else if (scope[0] == 19) {//每周指定天数
|
||||||
|
int dayOfWeek = scope[1];
|
||||||
|
Calendar calendar = Calendar.getInstance();
|
||||||
|
int hour = calendar.get(Calendar.HOUR_OF_DAY);
|
||||||
|
int minute = calendar.get(Calendar.MINUTE);
|
||||||
|
int w = calendar.get(Calendar.DAY_OF_WEEK) - 1;
|
||||||
|
if(w != dayOfWeek){
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
RechargeInfo info = user.getPlayerInfoManager().getRechargeInfo();
|
RechargeInfo info = user.getPlayerInfoManager().getRechargeInfo();
|
||||||
if (con.getPushtype() == 1) {
|
if (con.getPushtype() == 1) {
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ public enum PushRechargeType {
|
||||||
artifactid_level(16),//守护等级
|
artifactid_level(16),//守护等级
|
||||||
adjutant_level(17),//先驱等级
|
adjutant_level(17),//先驱等级
|
||||||
medal_star(18),//芯片星级
|
medal_star(18),//芯片星级
|
||||||
|
week_day(19),//每周的指定天数
|
||||||
|
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue