记录历史已买礼包
parent
d94a0ac92f
commit
82aeab166e
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Reference in New Issue