Explorar el Código

群聊首次发送图片问题修改

xyg hace 2 años
padre
commit
a8192d9307
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      light-application-wx/comps/chat/inputbar/suit/image/image.js

+ 1 - 1
light-application-wx/comps/chat/inputbar/suit/image/image.js

@@ -118,7 +118,7 @@ Component({
                                 msg.set({
                                     apiUrl: WebIM.config.apiURL,
                                     body: file,
-                                    from: me.data.username.myName,
+                                    from: wx.getStorageSync('myUsername'),
                                     to: me.getSendToParam(),
                                     roomType: false,
                                     chatType: me.data.chatType,