正在显示
2 个修改的文件
包含
9 行增加
和
4 行删除
@@ -142,10 +142,13 @@ class AutoMail { | @@ -142,10 +142,13 @@ class AutoMail { | ||
142 | 142 | ||
143 | } | 143 | } |
144 | 144 | ||
145 | -include_once "../vendor/autoload.php"; | 145 | +\Co\run(function (){ |
146 | + include_once "../vendor/autoload.php"; | ||
146 | 147 | ||
147 | // while(1){ | 148 | // while(1){ |
148 | -new AutoMail(); | 149 | + new AutoMail(); |
150 | +}); | ||
151 | + | ||
149 | 152 | ||
150 | //swoole_set_process_name('auto-reply-run-man'); | 153 | //swoole_set_process_name('auto-reply-run-man'); |
151 | // | 154 | // |
@@ -116,9 +116,11 @@ class HotMail { | @@ -116,9 +116,11 @@ class HotMail { | ||
116 | 116 | ||
117 | } | 117 | } |
118 | 118 | ||
119 | -include_once "../vendor/autoload.php"; | 119 | +\Co\run(function () { |
120 | + include_once "../vendor/autoload.php"; | ||
120 | 121 | ||
121 | -new HotMail(); | 122 | + new HotMail(); |
123 | +}); | ||
122 | 124 | ||
123 | // | 125 | // |
124 | //swoole_set_process_name('hot-email-run-man'); | 126 | //swoole_set_process_name('hot-email-run-man'); |
-
请 注册 或 登录 后发表评论