本地备份:主包优化前完整版本,可随时回退

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
XingQue
2026-06-27 05:41:55 +08:00
parent a751708d6e
commit 7f4f279b3f
124 changed files with 15837 additions and 21958 deletions

View File

@@ -165,13 +165,15 @@ function connectGoEasy(app, userId, identityType) {
loadConversations(app);
},
onFailed: (error) => {
console.error('GoEasy连接失败', error);
if (error.code === 408) {
// 408 多为 GoEasy 节点超时,开发者工具常见,不影响订单等业务接口
if (error && error.code === 408) {
console.warn('GoEasy 连接超时(408),将使用本地会话缓存');
bindGlobalListenersIfNeeded(app, userId);
loadConversations(app);
} else {
wx.showToast({ title: '连接失败,请重试', icon: 'none' });
return;
}
console.warn('GoEasy连接失败', error);
wx.showToast({ title: '消息服务连接失败', icon: 'none' });
},
});
}