From 8771da2ccf6f7c3fd2a8c89a1a0e230c6386db7f Mon Sep 17 00:00:00 2001
From: 石广澎 <shiguangpeng@163.com>
Date: 星期一, 17 十一月 2025 15:40:48 +0800
Subject: [PATCH] feat(api): 新增多个API接口并优化配置
---
common/api/index.js | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/common/api/index.js b/common/api/index.js
index ec53346..f2f48b0 100644
--- a/common/api/index.js
+++ b/common/api/index.js
@@ -34,6 +34,17 @@
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'
+ }
+ if (params.platform == 15) {
+ path = '/service-merchant/v1/web/h5PayUnionPay/getUserIdByCode'
+ }
+ return http.get(URL + path,
+ params, config = {})
+};
/* 鑾峰彇鐢ㄦ埛绉垎 */
export const queryScore = (params, config = {}) => http.get(URL +
'/service-merchant/v1/web/aggregatePayAllin/queryScore', params, config = {});
--
Gitblit v1.9.1