Commit 4eea0718 by Sixong.Zhu

cs

parent f3428a56
Showing with 3 additions and 0 deletions
...@@ -16,6 +16,9 @@ export async function getUserInfo(eid: string) { ...@@ -16,6 +16,9 @@ export async function getUserInfo(eid: string) {
if (userMapping[eid]) { if (userMapping[eid]) {
return userMapping[eid]; return userMapping[eid];
} }
if (!+eid) {
return { name: '', phone: '', icon: '' };
}
const info = await Chat.getSdk().domainService('passport', 'anonymous', `oidc.account/user_info?id=${eid}`).request<any, any, { const info = await Chat.getSdk().domainService('passport', 'anonymous', `oidc.account/user_info?id=${eid}`).request<any, any, {
avatar_url: string; avatar_url: string;
email: string; email: string;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment