|
|
@ -162,7 +162,7 @@ public class RechargeServiceImpl implements RechargeService { |
|
|
if (rechargeUser.getFreeGold()==null||rechargeUser.getFreeGold().compareTo(BigDecimal.ZERO)<0){ |
|
|
if (rechargeUser.getFreeGold()==null||rechargeUser.getFreeGold().compareTo(BigDecimal.ZERO)<0){ |
|
|
throw new SystemException("免费金币不能小于0"); |
|
|
throw new SystemException("免费金币不能小于0"); |
|
|
} |
|
|
} |
|
|
String result = GoldTistV2.addDCCoinNew(rechargeUser.getJwcode().toString(),63,rechargeUser.getFreeGold().doubleValue(),"","DC免费金币赠送",0,"DC","DC免费金币赠送"); |
|
|
|
|
|
|
|
|
String result = GoldTistV2.addDCCoinNew(rechargeUser.getJwcode().toString(),67,rechargeUser.getFreeGold().doubleValue(),"","DC免费金币赠送",0,"DC","DC免费金币赠送"); |
|
|
// 只关注 -1, -6, -7 |
|
|
// 只关注 -1, -6, -7 |
|
|
if ("-6".equals(result)) { |
|
|
if ("-6".equals(result)) { |
|
|
throw new SystemException(String.format("金币发放失败:类型错误(-6),jwcode=%s", rechargeUser.getJwcode())); |
|
|
throw new SystemException(String.format("金币发放失败:类型错误(-6),jwcode=%s", rechargeUser.getJwcode())); |
|
|
|