|
|
@ -71,11 +71,11 @@ public class BsStoreDiscountActivityPartakeUserController { |
|
|
|
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.getOrderByOutTradeNo(outTradeNo); |
|
|
|
BsTradeOrder tradeNo = tradeOrderService.getOrderByOutTradeNoOrPlatformTradeNo(outTradeNo); |
|
|
|
if (tradeNo == null) { |
|
|
|
if (tradeNo == null) { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的订单"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的订单"); |
|
|
|
} |
|
|
|
} |
|
|
|
String param = outTradeNo; |
|
|
|
String param = tradeNo.getOutTradeNo(); |
|
|
|
String fileUrl = "/share/" + System.currentTimeMillis() + ".png"; |
|
|
|
String fileUrl = "/share/" + System.currentTimeMillis() + ".png"; |
|
|
|
// type 生成类型
|
|
|
|
// type 生成类型
|
|
|
|
// 1:支付交易成功后
|
|
|
|
// 1:支付交易成功后
|
|
|
|