首页默认静默登陆

This commit is contained in:
李琦
2026-01-15 12:33:46 +08:00
parent c4f322edd6
commit 696cb2e0fa
9 changed files with 263 additions and 207 deletions

View File

@@ -51,11 +51,16 @@ export async function updateIntroductionImagesApi(params) {
/**
* 检查药店在线复诊配置(委托诊所和医生)
* @param params { store_id: number }
* @param params { store_id: number, guest?: number } - guest: 0=普通接口, 1=Guest接口
* @returns {Promise<*>}
*/
export async function checkOnlineConsultationConfigApi(params) {
return await get('/store/check-online-consultation-config', params, 3)
const { guest = 0, ...restParams } = params;
// guest=1 时调用 Guest 接口guest=0 时调用普通接口
const url = guest === 1
? '/guest/guest-platform/check-online-consultation-config'
: '/store/check-online-consultation-config';
return await get(url, restParams, 3)
}
/**