3
This commit is contained in:
@@ -98,19 +98,20 @@
|
||||
(item) => item.userID === value,
|
||||
);
|
||||
if (!info) {
|
||||
const {total,users} = await businessSearchUserInfo(value);
|
||||
if (total > 0) {
|
||||
const res = await businessSearchUserInfo(value,'kw');
|
||||
if (res.total > 0) {
|
||||
const {data} = await IMSDK.asyncApi(
|
||||
IMSDK.IMMethods.GetUsersInfo,
|
||||
IMSDK.uuid(),
|
||||
[users[0].userID],
|
||||
[res.data[0].id],
|
||||
);
|
||||
const imData = data[0];
|
||||
|
||||
info = {
|
||||
...imData,
|
||||
...users[0],
|
||||
...res.data[0],
|
||||
};
|
||||
console.log(info)
|
||||
}
|
||||
}
|
||||
if (info) {
|
||||
|
||||
@@ -135,11 +135,8 @@
|
||||
}
|
||||
this.isLoading = true
|
||||
try {
|
||||
const {
|
||||
total,
|
||||
users
|
||||
} = await businessSearchUserInfo(this.sourceID);
|
||||
if (total > 0) {
|
||||
const res = await businessSearchUserInfo(this.sourceID);
|
||||
if (res.total > 0) {
|
||||
const {
|
||||
data
|
||||
} = await IMSDK.asyncApi(
|
||||
@@ -150,7 +147,7 @@
|
||||
const imData = data[0]?.friendInfo ?? data[0]?.publicInfo ?? {};
|
||||
info = {
|
||||
...imData,
|
||||
...users[0],
|
||||
...res.data[0],
|
||||
};
|
||||
console.log(info)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user