免费礼包修改

back_recharge
lvxinran 2020-09-26 15:00:05 +08:00
parent 7c88b404c9
commit 742dfb5cbb
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ public class RechargeTimesManager extends AbstractDataManager {
@Override
public CumulationData.Result updateData(CumulationData data, MissionType missionType, Object... parm) {
CumulationData.Result result = null;
if (missionType == MissionType.RECHARGE_TIMES) {
if (missionType == MissionType.RECHARGE_TIMES&&(int) parm[0]>0) {
data.rechargeTimes++;
result = new CumulationData.Result(missionType);
}

View File

@ -143,7 +143,7 @@ public class BuyGoodsLogic {
double priceTemp =sRechargeCommodityConfig.getPrice();
int cfgType = SSpecialConfig.getIntegerValue(SSpecialConfig.EXCHANGE_FORCE_TYPE);
double price = SExchangeRate.doubleIntegerHashMap.get(cfgType).get((int)priceTemp);
double price = priceTemp==0?0:SExchangeRate.doubleIntegerHashMap.get(cfgType).get((int)priceTemp);
if(amount!=-999&&MathUtils.doubleEquals(amount,price)){
LOGGER.error("金额不对the uid={},the goodId={}, amount={},real={}", uid, goodsId, amount,price);
// resultRes.setResultCode(0);