|
|
@ -65,20 +65,19 @@ public class BsStoreDiscountActivityPartakeUserController { |
|
|
|
@RequestParam(value = "type" , required = true) Integer type, |
|
|
|
@RequestParam(value = "type" , required = true) Integer type, |
|
|
|
@RequestParam(value = "systemType" , required = true) Integer systemType) { |
|
|
|
@RequestParam(value = "systemType" , required = true) Integer systemType) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
|
|
|
|
System.out.println("outTradeNo="+outTradeNo+"&qrCodeSn="+"&type="+type+"&systemType="+systemType); |
|
|
|
BsTradeOrder tradeNo = tradeOrderService.getOrderByOutTradeNoOrPlatformTradeNo(outTradeNo); |
|
|
|
|
|
|
|
if (tradeNo == null) { |
|
|
|
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的订单"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
System.out.println("outTradeNo="+tradeNo.getOutTradeNo()+"&qrCodeSn="+"&type="+type+"&systemType="+systemType); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
JSONObject response = HttpsUtils.doGet(CommonSysConst.getSysConfig().getHsg_domain_name() + "/v1/wxMsg/getWxToken"); |
|
|
|
JSONObject response = HttpsUtils.doGet(CommonSysConst.getSysConfig().getHsg_domain_name() + "/v1/wxMsg/getWxToken"); |
|
|
|
if (StringUtils.isBlank(response.getString("return_data"))) { |
|
|
|
if (StringUtils.isBlank(response.getString("return_data"))) { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "获取token失败"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "获取token失败"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
BsTradeOrder tradeNo = tradeOrderService.getOrderByOutTradeNoOrPlatformTradeNo(outTradeNo); |
|
|
|
String param = outTradeNo; |
|
|
|
if (tradeNo == null) { |
|
|
|
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的订单"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
String param = tradeNo.getOutTradeNo(); |
|
|
|
String fileUrl = "/share/" + System.currentTimeMillis() + ".png"; |
|
|
|
String fileUrl = "/share/" + System.currentTimeMillis() + ".png"; |
|
|
|
|
|
|
|
|
|
|
|
// type 生成类型
|
|
|
|
// type 生成类型
|
|
|
|
// 1:支付交易成功后
|
|
|
|
// 1:支付交易成功后
|
|
|
|
// 2:分享关注公众号
|
|
|
|
// 2:分享关注公众号
|
|
|
|