首页默认静默登陆
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user