소스 검색

测试推送

lizhen_gitee 1 년 전
부모
커밋
1f3c9002c2
1개의 변경된 파일17개의 추가작업 그리고 0개의 파일을 삭제
  1. 17 0
      application/index/controller/Test.php

+ 17 - 0
application/index/controller/Test.php

@@ -0,0 +1,17 @@
+<?php
+
+namespace app\index\controller;
+
+use think\Controller;
+
+use \GatewayWorker\Lib\Gateway;
+class Test extends Controller
+{
+    public function test(){
+
+        $Gateway = new Gateway();
+        $Gateway::$registerAddress = '127.0.0.1:2345';
+        $Gateway::sendToAll('来自主动服务端的推送'.date('Y-m-d H:i:s'));
+
+    }
+}