From 1499bacfed2d21cffc75af31ed5c9c67864cc0e4 Mon Sep 17 00:00:00 2001
From: 石广澎 <shiguangpeng@163.com>
Date: 星期六, 03 八月 2024 16:04:39 +0800
Subject: [PATCH] feat(支付): 获取优惠券
---
common/api/index.js | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/common/api/index.js b/common/api/index.js
index e802088..5b1d247 100644
--- a/common/api/index.js
+++ b/common/api/index.js
@@ -11,18 +11,19 @@
/* 鏍规嵁shopId鑾峰彇鍟嗛摵淇℃伅 */
export const queryShopByShopId = (params, config = {}) => http.get(URL +
'/payfour-merchant/v1/web/aggregatePayAllin/queryShopByShopId', params, config)
+
/* 鑾峰彇绉垎浠峰�� */
export const getScoreWorth = (params, config = {}) => http.get(URL +
'/payfour-merchant/v1/web/aggregatePayAllin/getScoreWorth', params, config)
-
/* 闈欓粯鎺堟潈鐧诲綍 */
export const getOpenIdBase = (params, config = {}) => http.get(URL +
'/payfour-merchant/v1/web/aggregatePayAllin/getOpenIdBase', params, config = {});
+/*缁熶竴鐧诲綍*/
export const userLogin = (params, config = {}) => {
let path = '/payfour-merchant/v1/web/aggregatePayAllin/getOpenId'
- if(params.platform==5){
+ if(params.platform==5){ //鏀粯瀹濇巿鏉�
path = '/payfour-merchant/v1/web/h5PayAli/getUserIdByCode'
}
return http.get(URL + path,
@@ -53,5 +54,3 @@
export const getWxOrderInfo = (params, config = {}) => http.post(URL +
'/payfour-merchant/v1/web/aggregatePayAllin/getWxOrderInfo',
params, config = {});
-
-
--
Gitblit v1.9.1