|
|
|
@@ -235,13 +235,13 @@ public class WxGameServiceImpl implements WxGameService { |
|
|
|
JSONObject couponChanObj = (JSONObject) couponChannelIds.get(i); |
|
|
|
Integer prizeType = couponChanObj.getInteger("prizeType"); |
|
|
|
if(prizeType != null && prizeType == Constant.creditPlayType){ |
|
|
|
Map<String,Object> map = new HashMap<>(); |
|
|
|
map.put("prizeType",Constant.creditPlayType); |
|
|
|
map.put("gameWeight",couponChanObj.getInteger("weight")); |
|
|
|
map.put("credit",couponChanObj.getInteger("credit")); |
|
|
|
map.put("id",couponChanObj.getLong("id")); |
|
|
|
// map.put("couponId",couponChanObj.getLong("couponId")); |
|
|
|
couponIdsList.add(map); |
|
|
|
// Map jsonToMap = JSONObject.parseObject(couponChanObj.toJSONString()); |
|
|
|
// Map<String,Object> map = new HashMap<>(); |
|
|
|
// map.put("prizeType",Constant.creditPlayType); |
|
|
|
// map.put("gameWeight",couponChanObj.getInteger("weight")); |
|
|
|
// map.put("credit",couponChanObj.getInteger("credit")); |
|
|
|
// map.put("id",couponChanObj.getLong("id")); |
|
|
|
couponIdsList.add(couponChanObj); |
|
|
|
}else{ |
|
|
|
Long couponId = couponChanObj.getLong("couponId"); |
|
|
|
|
|
|
|
@@ -331,7 +331,6 @@ public class WxGameServiceImpl implements WxGameService { |
|
|
|
Integer prizeType = obj.getInteger("prizeType"); |
|
|
|
if(prizeType == null || prizeType != Constant.creditPlayType){ |
|
|
|
Long couponId = obj.getLong("couponId"); |
|
|
|
int weight = obj.getIntValue("weight"); |
|
|
|
try { |
|
|
|
if(couponId != null){ |
|
|
|
saveOrUpdateCouponChannel(couponId, wxCouponChannelsMap, record); |
|
|
|
|