|
@@ -74,7 +74,8 @@ public class PaymentController {
|
|
|
*/
|
|
*/
|
|
|
@Operation(summary = "创建微信Native支付")
|
|
@Operation(summary = "创建微信Native支付")
|
|
|
@PostMapping("/wechat/native")
|
|
@PostMapping("/wechat/native")
|
|
|
- public Result<Map<String, Object>> createWechatNativePay(@RequestBody Map<String, Object> params) {
|
|
|
|
|
|
|
+ public Result<Map<String, Object>> createWechatNativePay(@RequestBody Map<String, Object> params,
|
|
|
|
|
+ @RequestAttribute("userId") Long userId) {
|
|
|
String orderNo = (String) params.get("orderNo");
|
|
String orderNo = (String) params.get("orderNo");
|
|
|
String description = (String) params.get("description");
|
|
String description = (String) params.get("description");
|
|
|
Integer amount = (Integer) params.get("amount");
|
|
Integer amount = (Integer) params.get("amount");
|
|
@@ -83,7 +84,7 @@ public class PaymentController {
|
|
|
String contactAddress = (String) params.get("contactAddress");
|
|
String contactAddress = (String) params.get("contactAddress");
|
|
|
|
|
|
|
|
// 保存联系人信息
|
|
// 保存联系人信息
|
|
|
- paymentService.saveContactInfo(orderNo, contactName, contactPhone, contactAddress);
|
|
|
|
|
|
|
+ paymentService.saveContactInfo(orderNo, contactName, contactPhone, contactAddress, userId);
|
|
|
|
|
|
|
|
Map<String, Object> result = paymentService.createWechatNativePayOrder(orderNo, description, amount);
|
|
Map<String, Object> result = paymentService.createWechatNativePayOrder(orderNo, description, amount);
|
|
|
return Result.success(result);
|
|
return Result.success(result);
|