Update index.js

This commit is contained in:
huxuejian 2026-08-07 10:50:31 +08:00
parent f02600e33f
commit c5b3b867e5

View File

@ -504,12 +504,14 @@ async function addCorpAccount(ctx) {
} else if (account && account.relatedHlwPeople && account.relatedHlwPeople === relatedHlwPeople) {
return { success: false, message: "该人员已关联其他账号" };
}
const corpId = data.corpId;
if (
typeof relatedHlwPeople === "string" &&
relatedHlwPeople.trim() !== ""
) {
const { success, message, data } = await api.getInternetHospitalApi({
type: "getHlwPersonList",
corpId,
page: 1,
pageSize: 1,
doctorNo: relatedHlwPeople,