瀏覽代碼

fix

release_toaliyun_real
winter 1 年之前
父節點
當前提交
09c2b34061
共有 1 個文件被更改,包括 3 次插入0 次删除
  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 查看文件

@@ -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…
取消
儲存