|
|
|
@ -71,12 +71,12 @@ public class BsStoreDiscountActivityPartakeUserController { |
|
|
|
|
if (StringUtils.isBlank(response.getString("return_data"))) { |
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "获取token失败"); |
|
|
|
|
} |
|
|
|
|
BsTradeOrder tradeNo = tradeOrderService.getOrderByOutTradeNo(outTradeNo); |
|
|
|
|
BsTradeOrder tradeNo = tradeOrderService.getOrderByOutTradeNoOrPlatformTradeNo(outTradeNo); |
|
|
|
|
if (tradeNo == null) { |
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的订单"); |
|
|
|
|
} |
|
|
|
|
String param = outTradeNo; |
|
|
|
|
String fileUrl = "/share/" + System.currentTimeMillis() + ".png"; |
|
|
|
|
String param = tradeNo.getOutTradeNo(); |
|
|
|
|
String fileUrl = "/share/" + System.currentTimeMillis() + ".png"; |
|
|
|
|
// type 生成类型
|
|
|
|
|
// 1:支付交易成功后
|
|
|
|
|
// 2:分享关注公众号
|
|
|
|
|