|
|
@ -129,7 +129,13 @@ public class OtherServiceImpl implements OtherService { |
|
|
|
String Way = otherMapper.selectWay(type); |
|
|
|
String country = null; |
|
|
|
String name = null; |
|
|
|
UserGold userGold = userMapper.selectGold(JwCode); |
|
|
|
UserGold userGold = new UserGold(); |
|
|
|
userGold = userMapper.selectGold(JwCode); |
|
|
|
//新加判断位置 |
|
|
|
//判断usergold有没有查到数据 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BaseDES des = new BaseDES(); |
|
|
|
|
|
|
@ -182,6 +188,15 @@ public class OtherServiceImpl implements OtherService { |
|
|
|
country = "Unknown"; |
|
|
|
} |
|
|
|
|
|
|
|
if(userGold==null){ |
|
|
|
userGold = new UserGold(); |
|
|
|
userGold.setBuyJb(BigDecimal.ZERO); |
|
|
|
userGold.setCoreJb(BigDecimal.ZERO); |
|
|
|
userGold.setFree6(BigDecimal.ZERO); |
|
|
|
userGold.setFree12(BigDecimal.ZERO); |
|
|
|
userGold.setJwcode(JwCode); |
|
|
|
userMapper.addUserGold(userGold); |
|
|
|
} |
|
|
|
|
|
|
|
if (typesToUpdateZero.contains(type)) { |
|
|
|
System.out.println("充值------------------------------------------------------"); |
|
|
|