@wu529778790/open-im 1.10.9-beta.15 → 1.10.9-beta.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/clawbot/qr-login.js +2 -2
- package/package.json +1 -1
package/dist/clawbot/qr-login.js
CHANGED
|
@@ -98,12 +98,12 @@ export async function waitForQRLogin(session, onStatusChange) {
|
|
|
98
98
|
if (!result.bot_token) {
|
|
99
99
|
return { connected: false, message: '登录失败:服务器未返回 bot_token' };
|
|
100
100
|
}
|
|
101
|
-
log.info(`Login confirmed! botId=${result.ilink_bot_id}`);
|
|
101
|
+
log.info(`Login confirmed! botId=${result.ilink_bot_id}, baseurl=${result.baseurl ?? '(empty)'}`);
|
|
102
102
|
return {
|
|
103
103
|
connected: true,
|
|
104
104
|
botToken: result.bot_token,
|
|
105
105
|
accountId: result.ilink_bot_id,
|
|
106
|
-
baseUrl: result.baseurl,
|
|
106
|
+
baseUrl: result.baseurl || ILINK_BASE_URL,
|
|
107
107
|
userId: result.ilink_user_id,
|
|
108
108
|
message: '登录成功',
|
|
109
109
|
};
|