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