feat: 会员管理、在线复诊优化、新增配送仓库

This commit is contained in:
李琦
2026-07-20 13:50:03 +08:00
parent cb290f3e95
commit b0e9dfe2a3
11 changed files with 1293 additions and 57 deletions

View File

@@ -13,14 +13,14 @@ const DEV = {
wsUrl: 'ws://127.0.0.1:12080/ws',
};
// const PROD = {
// legacyApiBase: 'https://app.xiaokang88.com/service/v1/',
// newApiBase: 'https://api.xiaokang88.com/api/doctor/',
// wsUrl: 'wss://api.ws.g.xiaokang88.com/ws',
// };
const PROD = {
legacyApiBase: 'https://app.xiaokang88.com/service/v1/',
newApiBase: 'https://api.xiaokang88.com/api/doctor/',
wsUrl: 'wss://api.ws.g.xiaokang88.com/ws',
};
// const TEST = {
const PROD = {
const TEST = {
legacyApiBase: 'https://xk.test.saas.api-yii.nailaoyun.cn/service/v1/',
newApiBase: 'https://xk.test.saas.api.nailaoyun.cn/api/doctor/',
// wsUrl: 'wss://api.ws.g.xiaokang88.com/ws',
@@ -33,7 +33,11 @@ export function isDoctorWxDev() {
}
export function getDoctorWxEnv() {
return checkDev('dev') ? DEV : PROD;
let env = checkDev('dev') ? DEV : PROD;
if (checkDev('test')) {
env = TEST;
}
return env;
}
/** 开发 / 生产 WebSocket 地址(与 getDoctorWxEnv 同源,供 websocket 配置展示) */