zhangweicheng %!s(int64=7) %!d(string=hai) anos
pai
achega
926d93b995
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      public/web/socket/connection.js

+ 2 - 1
public/web/socket/connection.js

@@ -7,7 +7,8 @@ socketObject={
       // 连接socket服务器
       var hostName = window.location.hostname;
       let me = this;
-      socket = io('http://'+hostName+':3300');
+      let port = window.location.protocol ==='http:'?3300:3301
+      socket = io(window.location.protocol+'//'+hostName+':'+port);
       socket.on('connect', function () {
           me.roomInfo={
               feeRate:me.getFeeRateRoomID(),