xxxrrrdddd 3 anni fa
parent
commit
6d8036c5a8
1 ha cambiato i file con 17 aggiunte e 0 eliminazioni
  1. 17 0
      work

+ 17 - 0
work

@@ -0,0 +1,17 @@
+#!/usr/bin/env php
+<?php
+
+use think\App;
+use think\worker\Server;
+
+define('APP_PATH', __DIR__ . '/application/');
+bcscale(2);
+// 加载框架引导文件
+require __DIR__.'/thinkphp/base.php';
+App::initCommon();
+
+$work=new \Workerman\Worker();
+$work->onConnect=function ($conn){
+    echo 111;
+};
+$work->run();