parent
36f163d9eb
commit
f9b7f8b7c2
|
@ -92,9 +92,11 @@ public class BuyGoodsLogic {
|
|||
if(rechargeInfo.getIsFirst()==0 && firstInvest == 1){
|
||||
ActivityLogic.getInstance().updateActivityMissionProgress(user, ActivityType.FirstRecharge,1,null);
|
||||
SActivityRewardConfig sActivityRewardConfig = SActivityRewardConfig.getsActivityRewardConfigByActivityId(4).get(0);
|
||||
reward= sActivityRewardConfig.getReward();
|
||||
length+=reward.length;
|
||||
rechargeInfo.setFirst(1);
|
||||
String title = SErrorCodeEerverConfig.getI18NMessage("recharge_first_title");
|
||||
String content = SErrorCodeEerverConfig.getI18NMessage("recharge_first_txt");
|
||||
int nowTime =(int) (TimeUtils.now()/1000);
|
||||
MailLogic.getInstance().sendMail(user.getId(),title,content,ItemUtil.getMailReward(sActivityRewardConfig.getReward()),nowTime, Global.MAIL_EFFECTIVE_TIME);
|
||||
}
|
||||
if(length>baseReward.length){
|
||||
int[][] result = new int[length][];
|
||||
|
@ -102,11 +104,11 @@ public class BuyGoodsLogic {
|
|||
for(;i<baseReward.length;i++){
|
||||
result[i] =baseReward[i];
|
||||
}
|
||||
if(firstMultiple!=null){
|
||||
for(int j=0;j<firstMultiple.length;j++){
|
||||
result[i++] = firstMultiple[j];
|
||||
}
|
||||
|
||||
for(int j=0;j<firstMultiple.length;j++){
|
||||
result[i++] = firstMultiple[j];
|
||||
}
|
||||
|
||||
if(reward!=null){
|
||||
for(int j=0;j<reward.length;j++){
|
||||
result[i++] = reward[j];
|
||||
|
@ -114,11 +116,11 @@ public class BuyGoodsLogic {
|
|||
}
|
||||
rewardStr = ItemUtil.getMailReward(result);
|
||||
}else{
|
||||
// drop = ItemUtil.drop(user, baseReward, BIReason.RECHARGE_REWARD);
|
||||
|
||||
rewardStr = ItemUtil.getMailReward(baseReward);
|
||||
}
|
||||
}else{
|
||||
// drop = ItemUtil.drop(user, baseReward, BIReason.RECHARGE_REWARD);
|
||||
|
||||
rewardStr = ItemUtil.getMailReward(baseReward);
|
||||
}
|
||||
|
||||
|
@ -133,8 +135,12 @@ public class BuyGoodsLogic {
|
|||
buyGoodsTimes.put(goodsId,buyCount);
|
||||
rechargeInfo.setBuyGoodsTimes(buyGoodsTimes);
|
||||
|
||||
String title = SErrorCodeEerverConfig.getI18NMessage("recharge_title");
|
||||
String content = SErrorCodeEerverConfig.getI18NMessage("recharge_txt");
|
||||
//妖精
|
||||
String title = SErrorCodeEerverConfig.getI18NMessage("recharge_" + sRechargeCommodityConfig.getType() + "_title");
|
||||
String content = SErrorCodeEerverConfig.getI18NMessage("recharge_" + sRechargeCommodityConfig.getType() + "_txt");
|
||||
if(sRechargeCommodityConfig.getType() == 3){
|
||||
content = SErrorCodeEerverConfig.getI18NMessage("recharge_" + sRechargeCommodityConfig.getType() + "_txt",new Object[]{rewardStr.split("#")[1]});
|
||||
}
|
||||
int nowTime =(int) (TimeUtils.now()/1000);
|
||||
MailLogic.getInstance().sendMail(user.getId(),title,content,rewardStr,nowTime, Global.MAIL_EFFECTIVE_TIME);
|
||||
resultRes.setResultCode(1);
|
||||
|
|
|
@ -548,8 +548,8 @@ public class ItemUtil {
|
|||
}
|
||||
user.getMapManager().setTemporaryItems(null);
|
||||
if(!isVictory){
|
||||
String title = SErrorCodeEerverConfig.getI18NMessage("equip_bag_limit_title");
|
||||
String content = SErrorCodeEerverConfig.getI18NMessage("equip_bag_limit_txt");
|
||||
String title = SErrorCodeEerverConfig.getI18NMessage("map_overtime_title");
|
||||
String content = SErrorCodeEerverConfig.getI18NMessage("map_overtime_txt");
|
||||
int nowTime =(int) (TimeUtils.now()/1000);
|
||||
MailLogic.getInstance().sendMail(user.getId(),title,content,rewardStr.toString(),nowTime,Global.MAIL_EFFECTIVE_TIME);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue