|
|
@ -199,14 +199,14 @@ public class HighOrderServiceImpl implements HighOrderService { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "获取token失败"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "获取token失败"); |
|
|
|
} |
|
|
|
} |
|
|
|
Map<String,Object> push = new HashMap<>(); |
|
|
|
Map<String,Object> push = new HashMap<>(); |
|
|
|
push.put("token", "data"); |
|
|
|
push.put("token", tokenObject.getString("data")); |
|
|
|
push.put("couTypeCode", coupon.getCouponKey()); |
|
|
|
push.put("couTypeCode", coupon.getCouponKey()); |
|
|
|
push.put("distCouCount", highChildOrder.getSaleCount()); |
|
|
|
push.put("distCouCount", highChildOrder.getSaleCount()); |
|
|
|
push.put("userPhone", highUser.getPhone()); |
|
|
|
push.put("userPhone", highUser.getPhone()); |
|
|
|
push.put("thirdUserId", highUser.getUnionId()); |
|
|
|
push.put("thirdUserId", highUser.getUnionId()); |
|
|
|
|
|
|
|
|
|
|
|
// 推送给高速
|
|
|
|
// 推送给高速
|
|
|
|
JSONObject returnParam = HuiLianTongConfig.couJointDist(tokenObject.getString("data"), coupon.getCouponKey(), highChildOrder.getSaleCount(), highUser.getPhone(), highUser.getUnionId()); |
|
|
|
JSONObject returnParam = HuiLianTongConfig.couJointDist(tokenObject.getString("data"), highOrder.getOrderNo(), coupon.getCouponKey(), highChildOrder.getSaleCount(), highUser.getPhone(), highUser.getUnionId()); |
|
|
|
if (returnParam != null && returnParam.getString("result").equals("success")) { |
|
|
|
if (returnParam != null && returnParam.getString("result").equals("success")) { |
|
|
|
JSONArray dataArray = returnParam.getJSONArray("data"); |
|
|
|
JSONArray dataArray = returnParam.getJSONArray("data"); |
|
|
|
for (Object data : dataArray) { |
|
|
|
for (Object data : dataArray) { |
|
|
@ -353,14 +353,14 @@ public class HighOrderServiceImpl implements HighOrderService { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "获取token失败"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "获取token失败"); |
|
|
|
} |
|
|
|
} |
|
|
|
Map<String, Object> push = new HashMap<>(); |
|
|
|
Map<String, Object> push = new HashMap<>(); |
|
|
|
push.put("token", "data"); |
|
|
|
push.put("token", tokenObject.getString("data")); |
|
|
|
push.put("couTypeCode", coupon.getCouponKey()); |
|
|
|
push.put("couTypeCode", coupon.getCouponKey()); |
|
|
|
push.put("distCouCount", highChildOrder.getSaleCount()); |
|
|
|
push.put("distCouCount", highChildOrder.getSaleCount()); |
|
|
|
push.put("userPhone", highUser.getPhone()); |
|
|
|
push.put("userPhone", highUser.getPhone()); |
|
|
|
push.put("thirdUserId", highUser.getUnionId()); |
|
|
|
push.put("thirdUserId", highUser.getUnionId()); |
|
|
|
|
|
|
|
|
|
|
|
// 推送给高速
|
|
|
|
// 推送给高速
|
|
|
|
JSONObject returnParam = HuiLianTongConfig.couJointDist(tokenObject.getString("data"), coupon.getCouponKey(), highChildOrder.getSaleCount(), highUser.getPhone(), highUser.getUnionId()); |
|
|
|
JSONObject returnParam = HuiLianTongConfig.couJointDist(tokenObject.getString("data"), order.getOrderNo(),coupon.getCouponKey(), highChildOrder.getSaleCount(), highUser.getPhone(), highUser.getUnionId()); |
|
|
|
if (returnParam != null && returnParam.getString("result").equals("success")) { |
|
|
|
if (returnParam != null && returnParam.getString("result").equals("success")) { |
|
|
|
JSONArray dataArray = returnParam.getJSONArray("data"); |
|
|
|
JSONArray dataArray = returnParam.getJSONArray("data"); |
|
|
|
for (Object data : dataArray) { |
|
|
|
for (Object data : dataArray) { |
|
|
|