|
|
|
@@ -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); |
|
|
|
|