This commit is contained in:
qq
2026-04-22 00:13:48 +08:00
parent a2c4b0ca48
commit 777e8be4d5
3 changed files with 6 additions and 12 deletions
+4 -10
View File
@@ -144,7 +144,10 @@ let TaskInstallService = TaskInstallService_1 = class TaskInstallService {
FaceUrl: topUser.avatar,
},
];
await im_help_1.IMHelp.multiaccountImportUser(arr);
this.logger.verbose('正在导入IM用户');
const result = await im_help_1.IMHelp.multiaccountImportUser(arr);
this.logger.verbose('IM用户导入结果:');
this.logger.verbose(result);
this.logger.verbose('正在初始化群组');
const groupInfo = await im_help_1.IMHelp.getGroupInfo([app_env_1.AppEnv.IM_DEFAULT_GROUP_ID]);
if (groupInfo.GroupInfo?.length && groupInfo.GroupInfo[0].ErrorCode == 0) {
@@ -165,15 +168,6 @@ let TaskInstallService = TaskInstallService_1 = class TaskInstallService {
this.logger.verbose(`正初始化群组完成`);
}
}
await im_help_1.IMHelp.importGroupMember({
GroupId: app_env_1.AppEnv.IM_DEFAULT_GROUP_ID,
MemberList: [
{
Member_Account: imUid,
Role: 'admin',
},
],
});
}
};
exports.TaskInstallService = TaskInstallService;