Browse Source

fix

release_toaliyun_real
winter 1 year ago
parent
commit
09c2b34061
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      mallinkService/src/main/java/com/iformall/service/impl/WxGameServiceImpl.java

+ 3
- 0
mallinkService/src/main/java/com/iformall/service/impl/WxGameServiceImpl.java View File

@@ -565,6 +565,7 @@ public class WxGameServiceImpl implements WxGameService {
Object data = resultData.data;
Long orderId = 0L;
Integer addCredit = 0;
Long couponId = null;
if(data != null){
logger.info("userId:"+userId+",中奖了,"+data.toString());
@@ -584,6 +585,7 @@ public class WxGameServiceImpl implements WxGameService {
if(resultData1.code == Result.SUCCESS && resultData1.data != null && resultData1.data instanceof WxComposeOrder){
WxComposeOrder order = (WxComposeOrder)resultData1.data;
orderId = order.getMainOrderId();
couponId = vo.getCouponId();
}else{
logger.info("userId:"+userId+",中奖了发卷失败,"+resultData1.code+"{}"+resultData1.message);
resultData.data = null;
@@ -628,6 +630,7 @@ public class WxGameServiceImpl implements WxGameService {
wxGameActionLog.setType(Constant.creditPlayType);
}
wxGameActionLog.setCouponOrderId(orderId);
wxGameActionLog.setCouponId(couponId);
wxGameActionLog.setAddCredit(addCredit);

wxGameActionLogMapper.insert(wxGameActionLog);


Loading…
Cancel
Save