This commit is contained in:
2021-04-30 10:58:46 +08:00
parent 735a3198d5
commit d3df9043e3
3 changed files with 4 additions and 6 deletions
+1 -2
View File
@@ -72,8 +72,7 @@ abstract class Callback extends HttpService
* @param $data
* @param $reID
* @return Request
* @throws ReflectionException
* @throws NotFindClassException
* @throws Exception
*/
protected function _request($fd, $data, $reID): Request
{
+3 -3
View File
@@ -39,9 +39,9 @@ class Command extends \Console\Command
if (!in_array($dtl->get('action'), self::ACTIONS)) {
return 'I don\'t know what I want to do.';
}
if (!file_exists(storage('runtime.php'))) {
exec(PHP_BINARY . ' snowflake runtime:builder');
}
exec(PHP_BINARY . ' ' . APP_PATH . 'snowflake runtime:builder');
/** @var Shutdown $shutdown */
$shutdown = Snowflake::app()->get('shutdown');
if ($shutdown->isRunning() && $dtl->get('action') == 'start') {
-1
View File
@@ -106,7 +106,6 @@ class Shutdown extends Component
/**
* @param string $path
* @return bool
* @throws ConfigException
*/
public function directoryCheck(string $path): bool
{