记录历史已买礼包

back_recharge
wangyuan 2019-06-06 18:29:41 +08:00
parent d94a0ac92f
commit 82aeab166e
2 changed files with 5 additions and 2 deletions

View File

@ -5,6 +5,7 @@ import com.ljsd.jieling.logic.activity.ActivityLogic;
import com.ljsd.jieling.logic.activity.ActivityType;
import com.ljsd.jieling.logic.arena.ArenaLogic;
import com.ljsd.jieling.logic.dao.PlayerManager;
import com.ljsd.jieling.logic.dao.RechargeInfo;
import com.ljsd.jieling.logic.dao.UserManager;
import com.ljsd.jieling.logic.dao.root.User;
import com.ljsd.jieling.logic.mission.GameEvent;
@ -81,12 +82,14 @@ public class GetPlayerInfoHandler extends BaseHandler{
.build());
}
CommonProto.Player player = CBean2Proto.getPlayer(userId, user.getPlayerInfoManager(), user.getPlayerInfoManager().getMapId(), user.getMapManager().getCurMapId(),user.getMapManager());
RechargeInfo rechargeInfo = playerInfoManager.getRechargeInfo();
PlayerInfoProto.GetPlayerInfoResponse getPlayerInfoResponse
= PlayerInfoProto.GetPlayerInfoResponse.newBuilder()
.setPlayer(player)
.addAllNewPlayerGuidePoint(list)
.addAllPrivilege(privilegeList)
.addAllGiftGoodsInfo(BuyGoodsLogic.getGoodsBagInfo(userId))
.addAllBuyGoodsId(rechargeInfo.getBuyGoodsTimes().keySet())
.build();
try {
MessageUtil.sendMessage(iSession, 1, MessageTypeProto.MessageType.GET_PLAYERINFO_RESPONSE_VALUE, getPlayerInfoResponse, true);

View File

@ -78,7 +78,7 @@ public class BuyGoodsLogic {
}
int[][] firstMultiple = sRechargeCommodityConfig.getFirstMultiple();
if(firstMultiple!=null){
length+=length+firstMultiple.length;
length+=firstMultiple.length;
}
int firstInvest = sRechargeCommodityConfig.getFirstInvest();
int[][] reward=null;
@ -86,7 +86,7 @@ public class BuyGoodsLogic {
ActivityLogic.getInstance().updateActivityMissionProgress(user, ActivityType.FirstRecharge,1);
SActivityRewardConfig sActivityRewardConfig = SActivityRewardConfig.getsActivityRewardConfigByActivityId(4).get(0);
reward= sActivityRewardConfig.getReward();
length+=length+reward.length;
length+=reward.length;
rechargeInfo.setFirst(1);
}
if(length>baseReward.length){