'提交代码'

dev-discount
胡锐 3 years ago
parent eaf19c9ab1
commit 32e79ef93b
  1. 2
      hai-cweb/src/main/java/com/cweb/controller/HighTestController.java
  2. 4
      hai-service/src/main/java/com/hai/config/HuiLianTongConfig.java
  3. 8
      hai-service/src/main/java/com/hai/service/impl/HighOrderServiceImpl.java
  4. 4
      hai-service/src/main/java/com/hai/service/pay/impl/GoodsOrderServiceImpl.java

@ -231,7 +231,7 @@ public class HighTestController {
@ApiOperation(value = "测试") @ApiOperation(value = "测试")
public ResponseData couJointDist(@RequestParam(name = "token", required = true) String token) { public ResponseData couJointDist(@RequestParam(name = "token", required = true) String token) {
try { try {
return ResponseMsgUtil.success(HuiLianTongConfig.couJointDist(token,"20JY000251",2,"17726395120", "oArhO6XxKSvjI9wLP3cTK-iSG8yY")); return ResponseMsgUtil.success(HuiLianTongConfig.couJointDist(token,"HF"+new Date().getTime(),"20JY000251",2,"17726395120", "oArhO6XxKSvjI9wLP3cTK-iSG8yY"));
} catch (Exception e) { } catch (Exception e) {
log.error("HighOrderController --> getOrderById() error!", e); log.error("HighOrderController --> getOrderById() error!", e);
return ResponseMsgUtil.exception(e); return ResponseMsgUtil.exception(e);

@ -81,7 +81,7 @@ public class HuiLianTongConfig {
* @return * @return
* @throws Exception * @throws Exception
*/ */
public static JSONObject couJointDist(String token,String couTypeCode,Integer distCouCount,String userPhone,String thirdUserId) throws Exception { public static JSONObject couJointDist(String token,String orderNo,String couTypeCode,Integer distCouCount,String userPhone,String thirdUserId) throws Exception {
// 券列表 // 券列表
List<Map<String,Object>> objectList = new ArrayList<>(); List<Map<String,Object>> objectList = new ArrayList<>();
Map<String,Object> object = new HashMap<>(); Map<String,Object> object = new HashMap<>();
@ -93,7 +93,7 @@ public class HuiLianTongConfig {
param.put("coupons", objectList); param.put("coupons", objectList);
param.put("phone", userPhone); param.put("phone", userPhone);
param.put("thirdUserId", thirdUserId); param.put("thirdUserId", thirdUserId);
param.put("orderNo", "HF"+new Date().getTime()); param.put("orderNo", orderNo);
param.put("distOuCode", "guizhouhltcs"); param.put("distOuCode", "guizhouhltcs");
Map<String,Object> map = new HashMap<>(); Map<String,Object> map = new HashMap<>();

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

@ -129,14 +129,14 @@ public class GoodsOrderServiceImpl implements PayService {
} }
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) {

Loading…
Cancel
Save