@@ -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' });
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user