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/config.js | 66 +++++++++++++++++++-------------
1 files changed, 39 insertions(+), 27 deletions(-)
diff --git a/common/config.js b/common/config.js
index 650ccf2..f222f9f 100644
--- a/common/config.js
+++ b/common/config.js
@@ -2,38 +2,50 @@
// 寮�鍙�
const dev = {
- webURL: 'https://sfzf.cpbtsoft.cn',
- baseURL: '/dev-api',
- // baseURL: 'http://172.16.2.117:8080',
- sftpURL: 'https://yqzx.jinmingyuan.com/file',
- wx_appid: 'wx4c146dba764dcb05',
- ali_appid: '2021004149689887'
+ webURL: 'https://zhxx.jinmingyuan.com/pay',
+ baseURL: 'http://1.14.252.104:7101',
+ sftpURL: 'https://zhkj.jinmingyuan.com:8443/sftp',
+ imgUrl: 'https://zhkj.jinmingyuan.com:8443/sftp/platform/app/',
+ wx_appid: 'wxad8cc511da676bd4',
+ ali_appid: '2021003199690698'
}
-// 娴嬭瘯
-const test = {
- webURL: 'https://sfzf.cpbtsoft.cn',
- baseURL: 'https://sfzf.cpbtsoft.cn/prod-api',
- sftpURL: 'https://sfzf.cpbtsoft.cn/prod-api',
- wx_appid: 'wx4c146dba764dcb05',
- ali_appid: '2021004149689887'
+// 缈兼敮浠樻祴璇�
+const yPayTest = {
+ webURL: 'https://zhxx.jinmingyuan.com/yPayTest',
+ baseURL: 'http://1.14.252.104:7101',
+ sftpURL: 'https://zhkj.jinmingyuan.com:8443/sftp',
+ imgUrl: 'https://zhkj.jinmingyuan.com:8443/sftp/platform/app/',
+ wx_appid: 'wxd163440fc91fd9af',
+ ali_appid: '2021003199690698'
}
-// 姝e紡
-const prod = {
- webURL: 'https://jmy.jinmingyuan.com',
- baseURL: 'https://yqzx.jinmingyuan.com',
- sftpURL: 'https://yqzx.jinmingyuan.com/file',
- wx_appid: 'wx4c146dba764dcb05',
- ali_appid: '2021004149689887'
+// 鐢熸�佸湀
+const stq = {
+ webURL: 'https://zhxx.jinmingyuan.com/pay',
+ baseURL: 'https://zhxx.jinmingyuan.com',
+ sftpURL: 'https://zhkj.jinmingyuan.com:8443/sftp',
+ imgUrl: 'https://zhkj.jinmingyuan.com:8443/sftp/platform/app/',
+ wx_appid: 'wxad8cc511da676bd4',
+ ali_appid: '2021003199690698'
+}
+
+// 浜烘墠鐮�
+const rcm = {
+ webURL: 'https://zhxx.jinmingyuan.com/rcmpay',
+ baseURL: 'https://zhxx.jinmingyuan.com/rcmapi',
+ sftpURL: 'https://zhkj.jinmingyuan.com:8443/sftp',
+ imgUrl: 'https://zhkj.jinmingyuan.com:8443/sftp/platform/app/',
+ wx_appid: 'wxad8cc511da676bd4',
+ ali_appid: '2021003199690698'
}
const cardType = {
- '00': '鍌ㄨ搫鍗�',
- '02': '淇$敤鍗�'
+ '00': '鍌ㄨ搫鍗�',
+ '02': '淇$敤鍗�'
}
module.exports = {
- config: process.env.NODE_ENV === 'development' ? dev : test,
- ACCESSTOKEN: "Authorization",
- /* 鏄惁鎵撳嵃璇锋眰鏃ュ織 */
- DEBUG: false,
- cardType: cardType
+ config: stq,
+ ACCESSTOKEN: "SCAN-WECHAT-TOKEN-HEADER",
+ /* 鏄惁鎵撳嵃璇锋眰鏃ュ織 */
+ DEBUG: false,
+ cardType: cardType
}
--
Gitblit v1.9.1