mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-11-12 03:48:55 +08:00
feat(im): 客服聊天支持图片上传、独立OSS存储配置及发送失败状态处理
This commit is contained in:
@@ -272,6 +272,12 @@ class WsSocket {
|
||||
* @param {Object} evt Websocket 消息
|
||||
*/
|
||||
onMessage(evt) {
|
||||
// 图片权限校验失败属于系统反馈,不能当成聊天消息插入记录。
|
||||
const envelope = JSON.parse(evt.data);
|
||||
if (envelope.messageResultType === "SYSTEM_TIPS") {
|
||||
this.onCallBacks["event_error"]?.(envelope.result);
|
||||
return;
|
||||
}
|
||||
let result = this.onParse(evt);
|
||||
// 部分推送(在线状态、系统通知等)没有 text 字段,不做商品/群名解析直接透传
|
||||
const text = result.text;
|
||||
|
||||
Reference in New Issue
Block a user