dever 4 years ago
parent
commit
95a29e4437
2 changed files with 3 additions and 1 deletions
  1. 2 1
      app/community/src/Chat.php
  2. 1 0
      package/im_gateway_server/start.php

+ 2 - 1
app/community/src/Chat.php

@@ -4,6 +4,7 @@ namespace Community\Src;
 
 use Dever;
 use Collection\Lib\Core;
+Dever::apply('lib/gateway', 'im_gateway_client');
 use Im_gateway_client\Lib\Gateway;
 
 class Chat extends Core
@@ -21,7 +22,7 @@ class Chat extends Core
 
 	private function connect()
 	{
-		Gateway::$registerAddress = '192.168.33.10:1238';
+		Gateway::$registerAddress = 'dl.shemic.com:1238';
 	}
 
 	# 初始化,绑定client_id

+ 1 - 0
package/im_gateway_server/start.php

@@ -1,2 +1,3 @@
 <?php
+define('DEVER_IM_IP',  '39.97.246.166');
 include('dever_package/im_gateway_server/start.php');