docs/ai-reading-improvements-20260119 #52
@@ -714,13 +714,7 @@ export class LoginService {
|
|||||||
apiKeyResult.apiKey!
|
apiKeyResult.apiKey!
|
||||||
);
|
);
|
||||||
|
|
||||||
// 4. 更新内存关联
|
// 注意:不在登录时建立内存关联,Zulip客户端将在WebSocket连接时创建
|
||||||
await this.zulipAccountService.linkGameAccount(
|
|
||||||
user.id.toString(),
|
|
||||||
zulipAccount.zulipUserId,
|
|
||||||
zulipAccount.zulipEmail,
|
|
||||||
apiKeyResult.apiKey!
|
|
||||||
);
|
|
||||||
|
|
||||||
const duration = Date.now() - startTime;
|
const duration = Date.now() - startTime;
|
||||||
|
|
||||||
|
|||||||
@@ -533,15 +533,7 @@ export class RegisterService {
|
|||||||
status: 'active',
|
status: 'active',
|
||||||
});
|
});
|
||||||
|
|
||||||
// 6. 建立游戏账号与Zulip账号的内存关联(用于当前会话)
|
// 注意:不在注册时建立内存关联,Zulip客户端将在WebSocket连接时创建
|
||||||
if (finalApiKey) {
|
|
||||||
await this.zulipAccountService.linkGameAccount(
|
|
||||||
gameUser.id.toString(),
|
|
||||||
createResult.userId, // 已在上面验证不为 undefined
|
|
||||||
createResult.email!,
|
|
||||||
finalApiKey
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
const duration = Date.now() - startTime;
|
const duration = Date.now() - startTime;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user