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