From 174857e9b679ea0d4d7dc9949728d754cb26fa32 Mon Sep 17 00:00:00 2001 From: bingcool <2437667702@qq.com> Date: Thu, 13 Apr 2023 21:47:27 +0800 Subject: [PATCH] feat:update version --- Test/Bootstrap.php | 8 ++++---- Test/Event.php | 2 +- Test/Process/CronProcess/Cron.php | 2 +- src/Constants.php | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Test/Bootstrap.php b/Test/Bootstrap.php index 59e0e333..cb8dd9f3 100644 --- a/Test/Bootstrap.php +++ b/Test/Bootstrap.php @@ -21,10 +21,10 @@ class Bootstrap implements BootstrapInterface { public static function handle(Request $request, Response $response) { - SystemException::throw( - "数据缺失", - ['uid' => 100] - ); +// SystemException::throw( +// "数据缺失", +// ['uid' => 100] +// ); //return Application::getApp()->beforeEnd(500); } diff --git a/Test/Event.php b/Test/Event.php index f5ee8197..070df5b0 100644 --- a/Test/Event.php +++ b/Test/Event.php @@ -38,7 +38,7 @@ public function onInit() { //ProcessManager::getInstance()->addProcess('tick', \Test\Process\TickProcess\Tick::class); // 测试cron自定义进程 - //ProcessManager::getInstance()->addProcess('cron', \Test\Process\CronProcess\Cron::class); + ProcessManager::getInstance()->addProcess('cron', \Test\Process\CronProcess\Cron::class); // 这里为什么获取不到pid,那是应为process需要server执行start后才会创建,而在这里只是创建实例,server还没正式启动 //$pid = ProcessManager::getInstance()->getProcessByName('cron')->getPid(); diff --git a/Test/Process/CronProcess/Cron.php b/Test/Process/CronProcess/Cron.php index ecd60659..e184d312 100644 --- a/Test/Process/CronProcess/Cron.php +++ b/Test/Process/CronProcess/Cron.php @@ -26,7 +26,7 @@ public function run() { // }); // // // 抽离成CronController形式 -// CrontabManager::getInstance()->addRule('cron_test1', '*/1 * * * *', [CronController::class, 'doCronTask']); + CrontabManager::getInstance()->addRule('cron_test1', '*/1 * * * *', [CronController::class, 'doCronTask']); // CrontabManager::getInstance()->addRule('cron_test1', '*/1 * * * *', [CronController::class, 'doCronTask']); diff --git a/src/Constants.php b/src/Constants.php index 25d1fcd8..716ca9ba 100644 --- a/src/Constants.php +++ b/src/Constants.php @@ -45,7 +45,7 @@ defined('MQTT_PROTOCOL_LEVEL3') or define('MQTT_PROTOCOL_LEVEL3', 4); defined('MQTT_PROTOCOL_LEVEL5') or define('MQTT_PROTOCOL_LEVEL5', 5); -defined('SWOOLEFY_VERSION') or define('SWOOLEFY_VERSION', '5.0.4'); +defined('SWOOLEFY_VERSION') or define('SWOOLEFY_VERSION', '5.0.5'); defined('SWOOLEFY_EOF_FLAG') or define('SWOOLEFY_EOF_FLAG', '::'); defined('WORKER_CLI_STOP') or define('WORKER_CLI_STOP','stop');