This commit is contained in:
Alex-larget
2026-04-07 15:59:13 +08:00
parent 7b285a7b70
commit 36b8524bc9
22 changed files with 340 additions and 1164 deletions

View File

@@ -11,10 +11,12 @@ const DEFAULT_APP_ID = 'wxb8bbb2b10dec74aa'
const DEFAULT_MCH_ID = '1318592501'
const DEFAULT_WITHDRAW_TMPL_ID = 'u3MbZGPRkrZIk-I7QdpwzFxnO_CeQPaCWF2FkiIablE'
// 线上正式域名(真机/体验版/正式版强制使用此地址)
const API_BASE_URL_PROD = 'https://soulapi.quwanzhi.com'
// const API_BASE_URL_PROD = 'https://soulapi.quwanzhi.com'
const API_BASE_URL_PROD = 'https://souldev.quwanzhi.com'
// 本地开发地址(仅开发者工具模拟器生效;真机自动回退 PROD
const API_BASE_URL_DEV = 'http://127.0.0.1:8080'
// const API_BASE_URL_DEV = 'https://souldev.quwanzhi.com'
// const API_BASE_URL_DEV = 'http://127.0.0.1:9090'
const API_BASE_URL_DEV = 'https://souldev.quwanzhi.com'
// 运行时自动判断:非开发工具(真机/体验版/正式版)强制用 PROD避免 localhost 打进上传包导致白屏
const _isDevTools = (typeof __wxConfig !== 'undefined' && __wxConfig.platform === 'devtools')