mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-24 00:55:35 +08:00
update start settings.
This commit is contained in:
@@ -29,8 +29,8 @@ switch ($argv[1] ?? '') {
|
|||||||
case 'server':
|
case 'server':
|
||||||
if(!is_dir(__DIR__.'/../vendor/')){
|
if(!is_dir(__DIR__.'/../vendor/')){
|
||||||
echo "Warning: you have not update composer!\n";
|
echo "Warning: you have not update composer!\n";
|
||||||
$r = Co::exec("composer update");
|
exec("composer update", $out, $var);
|
||||||
if($r['code'] != 0) {
|
if($var != 0) {
|
||||||
echo "You need to run \"composer update\" at root of zhamao-framework!\n";
|
echo "You need to run \"composer update\" at root of zhamao-framework!\n";
|
||||||
die;
|
die;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -74,10 +74,7 @@ class AnnotationParser
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo json_encode(ZMBuf::$req_mapping, 128 | 256);
|
|
||||||
|
|
||||||
$tree = self::genTree(ZMBuf::$req_mapping);
|
$tree = self::genTree(ZMBuf::$req_mapping);
|
||||||
echo json_encode($tree, 128 | 256);
|
|
||||||
ZMBuf::$req_mapping = $tree[0];
|
ZMBuf::$req_mapping = $tree[0];
|
||||||
//给支持level的排个序
|
//给支持level的排个序
|
||||||
foreach (ZMBuf::$events as $class_name => $v) {
|
foreach (ZMBuf::$events as $class_name => $v) {
|
||||||
@@ -222,7 +219,6 @@ class AnnotationParser
|
|||||||
continue 2;
|
continue 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Console::info('Adding prefix "' . $shift . "\", " . json_encode($array[$uid - 1]));
|
|
||||||
$array[$uid++] = [
|
$array[$uid++] = [
|
||||||
'id' => $uid - 1,
|
'id' => $uid - 1,
|
||||||
'pid' => $pid,
|
'pid' => $pid,
|
||||||
|
|||||||
Reference in New Issue
Block a user