gemercheung hace 3 años
padre
commit
5ed3598102
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      socket.js

+ 4 - 0
socket.js

@@ -414,10 +414,14 @@ export default {
     if (!options.roomId) {
       return
     }
+    let userInfo = await this.getUserInfo()
 
     let socket = io(remote.socketHost, {
       path: '/fsl-node',
       transport: ['websocket'],
+      extraHeaders: {
+        "oid": userInfo.weixin_openid
+      },
       query: {
         ...options,
         isClient: true,