This commit is contained in:
as2252258@163.com
2021-03-26 01:15:28 +08:00
parent 5c72f9bbfa
commit 7b234e7edc
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -133,7 +133,6 @@ class Server extends HttpService
public function start(): string
{
$configs = Config::get('servers', true);
var_dump(Config::get('crontab.enable'));
if (Config::get('crontab.enable') === true) {
$this->addProcess('CrontabZookeeper', CrontabZookeeperProcess::class);
$this->addProcess('CrontabConsumer', Consumer::class);
+1 -1
View File
@@ -29,7 +29,7 @@ class Json
public static function encode($data): bool|string
{
if (empty($data)) {
return $data;
return false;
}
if (is_array($data)) {
return json_encode($data, JSON_UNESCAPED_UNICODE);