From 14a52315c4bdcd7d04208f41696ffd3771dd8183 Mon Sep 17 00:00:00 2001
From: 石广澎 <shiguangpeng@163.com>
Date: 星期二, 04 六月 2024 18:02:17 +0800
Subject: [PATCH] feat(支付): 权益平台配置

---
 common/api/index.js |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/common/api/index.js b/common/api/index.js
index ec53346..063a7f4 100644
--- a/common/api/index.js
+++ b/common/api/index.js
@@ -33,7 +33,14 @@
 /* 鏀粯瀹濇櫘閫氭巿鏉冪櫥褰� */
 export const getUserId = (params, config = {}) => http.get(URL + '/service-merchant/v1/web/h5PayAli/getUserIdByCode',
 	params, config = {});
-
+export const userLogin = (params, config = {}) => {
+	let path = '/service-merchant/v1/web/aggregatePayAllin/getOpenId'
+	if(params.platform==5){
+		path = '/service-merchant/v1/web/h5PayAli/getUserIdByCode'
+	}
+	return http.get(URL + path,
+		params, config = {})
+};
 /* 鑾峰彇鐢ㄦ埛绉垎 */
 export const queryScore = (params, config = {}) => http.get(URL +
 	'/service-merchant/v1/web/aggregatePayAllin/queryScore', params, config = {});
@@ -51,6 +58,8 @@
 /* 寰俊鏀粯 */
 export const saveWxOrder = (params, config = {}) => http.post(URL +
 	'/service-merchant/v1/web/aggregatePayAllin/saveWxOrder', params, config = {});
+export const saveWxOrder1 = (params, config = {}) => http.post(URL +
+	'/service-merchant/v1/web/aggregatePayAllin/saveOrder', params, config = {});
 
 /* 鍥惧舰楠岃瘉鍚� */
 export const getVerify = (params, config = {}) => http.get(URL +
@@ -109,4 +118,4 @@
 /* 鑾峰彇棣栫粦鏈夌ぜ */
 export const headBand = (params, config = {}) => http.get(URL +
 	'/service-shop/v1/shop/wechat/activity/headBand/detail',
-	params, config = {});
\ No newline at end of file
+	params, config = {});

--
Gitblit v1.9.1