免费礼包修改
parent
7c88b404c9
commit
742dfb5cbb
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue