|
@@ -190,8 +190,9 @@ public class MaterialSalesController {
|
|
|
@GetMapping("/pay")
|
|
|
@ApiOperation(value = "生成支付")
|
|
|
public ResponseHelper<PayDetail> websitDefault(
|
|
|
- @ApiParam(value = "appOrderId",required = true) @RequestParam String key,
|
|
|
+ @ApiParam(value = "appOrderId或payConfigId",required = true) @RequestParam String key,
|
|
|
@ApiParam(value = "openid",required = true) @RequestParam String openid,
|
|
|
+ @ApiParam(value = "salesId") @RequestParam(required = false) String salesId,
|
|
|
@ApiParam(value = "通联支付类型") @RequestParam(required = false, defaultValue = SybConstants.PAY_TYPE_W06) String payType,
|
|
|
@ApiParam(value = "支付完成跳转(必须为https协议地址,且不允许带参数)") @RequestParam(required = false) String frontUrl
|
|
|
) throws RemoteServiceException, InterruptedException {
|
|
@@ -200,7 +201,7 @@ public class MaterialSalesController {
|
|
|
throw new RemoteServiceException("系统繁忙,请稍后再尝试");
|
|
|
}
|
|
|
try {
|
|
|
- PayDetail pay = websitSalesLogic.generatePayRecord(key, openid, payType, frontUrl);
|
|
|
+ PayDetail pay = websitSalesLogic.generatePayRecord(key, openid, salesId, payType, frontUrl);
|
|
|
return ResponseHelper.success(pay);
|
|
|
}finally {
|
|
|
obtain.unlock();
|