modify
This commit is contained in:
@@ -133,7 +133,6 @@ class Server extends HttpService
|
|||||||
public function start(): string
|
public function start(): string
|
||||||
{
|
{
|
||||||
$configs = Config::get('servers', true);
|
$configs = Config::get('servers', true);
|
||||||
var_dump(Config::get('crontab.enable'));
|
|
||||||
if (Config::get('crontab.enable') === true) {
|
if (Config::get('crontab.enable') === true) {
|
||||||
$this->addProcess('CrontabZookeeper', CrontabZookeeperProcess::class);
|
$this->addProcess('CrontabZookeeper', CrontabZookeeperProcess::class);
|
||||||
$this->addProcess('CrontabConsumer', Consumer::class);
|
$this->addProcess('CrontabConsumer', Consumer::class);
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ class Json
|
|||||||
public static function encode($data): bool|string
|
public static function encode($data): bool|string
|
||||||
{
|
{
|
||||||
if (empty($data)) {
|
if (empty($data)) {
|
||||||
return $data;
|
return false;
|
||||||
}
|
}
|
||||||
if (is_array($data)) {
|
if (is_array($data)) {
|
||||||
return json_encode($data, JSON_UNESCAPED_UNICODE);
|
return json_encode($data, JSON_UNESCAPED_UNICODE);
|
||||||
|
|||||||
Reference in New Issue
Block a user