From 817ebd8af46cbb19be31103600ad009437e1f12f Mon Sep 17 00:00:00 2001
From: 石广澎 <shiguangpeng@163.com>
Date: 星期三, 10 七月 2024 09:41:00 +0800
Subject: [PATCH] feat(支付): 修改授权逻辑 进入页面判断本地是否有openid,没有的话跳转微信授权,有的话直接到支付页,使用
---
common/api/index.js | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/common/api/index.js b/common/api/index.js
index 4776e01..53ac3a7 100644
--- a/common/api/index.js
+++ b/common/api/index.js
@@ -58,8 +58,13 @@
/* 寰俊鏀粯 */
export const saveWxOrder = (params, config = {}) => http.post(URL +
'/payfour-merchant/v1/web/aggregatePayAllin/saveWxOrder', params, config = {});
+/*缁熶竴鏀粯*/
export const saveOrder = (params, config = {}) => http.post(URL +
'/payfour-merchant/v1/web/aggregatePayAllin/saveOrder', params, config = {});
+
+/*鍙栨秷璁㈠崟*/
+export const closeOrder = (params, config = {}) => http.get(URL +
+ '/payfour-merchant/v1/web/aggregatePayAllin/scanPayOrderClose', params, config = {});
/* 鍥惧舰楠岃瘉鍚� */
export const getVerify = (params, config = {}) => http.get(URL +
@@ -75,7 +80,7 @@
/* 閫氳仈蹇嵎鏀粯 */
export const tlPay = (params, config = {}) => http.post(URL +
- '/payfour-merchant/v1/web/aggregatePayAllin/payagreeconfirm',
+ '/payfour-merchant/v1/web/aggregatePayAllin/pay/scanpayagreeconfirm',
params, config = {});
/* 寰俊鏀粯缁撴灉 */
--
Gitblit v1.9.1