update start settings.

This commit is contained in:
whale
2020-03-12 18:31:35 +08:00
parent e3c930bc62
commit 21059a7ed7
3 changed files with 8 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ use ZM\Utils\ZMUtil;
class EventHandler
{
public static function callSwooleEvent($event_name, $param0, $param1 = null) {
//$starttime = microtime(true);
$event_name = strtolower($event_name);
switch ($event_name) {
case "workerstart":

View File

@@ -31,6 +31,10 @@ class DataProvider
echo Console::setColor("saved", "lightblue").PHP_EOL;
}
public static function getFrameworkLink(){
return ZMBuf::globals("http_reverse_link");
}
private static function getJsonData(string $string) {
if(!file_exists(self::getDataFolder().$string)) return [];
return json_decode(Co::readFile(self::getDataFolder().$string), true);