|
|
@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON; |
|
|
import com.example.demo.Util.BaseDES3; |
|
|
import com.example.demo.Util.BaseDES3; |
|
|
import com.example.demo.Util.BusinessException; |
|
|
import com.example.demo.Util.BusinessException; |
|
|
import com.example.demo.Util.GoldTistV2; |
|
|
import com.example.demo.Util.GoldTistV2; |
|
|
|
|
|
import com.example.demo.Util.SimpleIdGenerator; |
|
|
import com.example.demo.config.RedTimeRuleConfig; |
|
|
import com.example.demo.config.RedTimeRuleConfig; |
|
|
import com.example.demo.domain.entity.User; |
|
|
import com.example.demo.domain.entity.User; |
|
|
import com.example.demo.domain.entity.UserGoldRecord; |
|
|
import com.example.demo.domain.entity.UserGoldRecord; |
|
|
@ -384,7 +385,7 @@ public class RedServiceImpl implements RedService { |
|
|
// if(consumeUser.getJwcode().equals(94226013)){ |
|
|
// if(consumeUser.getJwcode().equals(94226013)){ |
|
|
String result = GoldTistV2.addCoinNew(userGoldRecord.getJwcode().toString(), 65, |
|
|
String result = GoldTistV2.addCoinNew(userGoldRecord.getJwcode().toString(), 65, |
|
|
(double) (userGoldRecord.getPermanentGold() + userGoldRecord.getFreeDecember() + userGoldRecord.getFreeJune() + userGoldRecord.getTaskGold()) / 100, |
|
|
(double) (userGoldRecord.getPermanentGold() + userGoldRecord.getFreeDecember() + userGoldRecord.getFreeJune() + userGoldRecord.getTaskGold()) / 100, |
|
|
userGoldRecord.getRemark(), 0, consumeUser.getAdminName(), userGoldRecord.getGoodsName()); |
|
|
|
|
|
|
|
|
SimpleIdGenerator.generateId(),userGoldRecord.getRemark(), 0, consumeUser.getAdminName(), userGoldRecord.getGoodsName()); |
|
|
// System.out.println("9"+result+"9"); |
|
|
// System.out.println("9"+result+"9"); |
|
|
result = result.replaceAll("[\r\n]", ""); |
|
|
result = result.replaceAll("[\r\n]", ""); |
|
|
|
|
|
|
|
|
@ -392,7 +393,7 @@ public class RedServiceImpl implements RedService { |
|
|
if (!result.equals("2")) { |
|
|
if (!result.equals("2")) { |
|
|
result = GoldTistV2.addCoinNew(userGoldRecord.getJwcode().toString(), 65, |
|
|
result = GoldTistV2.addCoinNew(userGoldRecord.getJwcode().toString(), 65, |
|
|
(double) (userGoldRecord.getPermanentGold() + userGoldRecord.getFreeDecember() + userGoldRecord.getFreeJune() + userGoldRecord.getTaskGold()) / 100, |
|
|
(double) (userGoldRecord.getPermanentGold() + userGoldRecord.getFreeDecember() + userGoldRecord.getFreeJune() + userGoldRecord.getTaskGold()) / 100, |
|
|
userGoldRecord.getRemark(), 0, consumeUser.getAdminName(), userGoldRecord.getGoodsName()); |
|
|
|
|
|
|
|
|
SimpleIdGenerator.generateId(),userGoldRecord.getRemark(), 0, consumeUser.getAdminName(), userGoldRecord.getGoodsName()); |
|
|
//返回状态1加成功2减成功其他失败 -5 金币不足 -6 类型错误 -7签名错误 |
|
|
//返回状态1加成功2减成功其他失败 -5 金币不足 -6 类型错误 -7签名错误 |
|
|
if (!result.equals("2")) { |
|
|
if (!result.equals("2")) { |
|
|
String errorMsg = "减金币失败,数据未进erp,返回状态:" + result; |
|
|
String errorMsg = "减金币失败,数据未进erp,返回状态:" + result; |
|
|
|