增加礼物推送礼包

main
grimm 2025-10-13 15:37:38 +08:00
parent d1b932ba6d
commit 7d29ea90f1
3 changed files with 15 additions and 1 deletions

View File

@ -229,6 +229,11 @@ public class GetPlayerInfoHandler extends BaseHandler {
PlayerLogic.getInstance().dealGooglePreReward(user);
//处理F5浮窗礼包奖励
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());
PlayerInfoProto.GetPlayerInfoResponse getPlayerInfoResponse
= PlayerInfoProto.GetPlayerInfoResponse.newBuilder()

View File

@ -3005,6 +3005,15 @@ public class BuyGoodsLogic {
LOGGER.info("dddd");
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();
if (con.getPushtype() == 1) {

View File

@ -19,7 +19,7 @@ public enum PushRechargeType {
artifactid_level(16),//守护等级
adjutant_level(17),//先驱等级
medal_star(18),//芯片星级
week_day(19),//每周的指定天数
;