'config' ]); } $rootDB = RootDB::db(); $rootDB->addHook('run_failed', function ($params) { Json::die([ 'step' => 'sql_fail' ]); }); $memberCnt = $rootDB->queryFirstField('SELECT count(`NO`) from member'); if ($memberCnt == 0) { Json::die([ 'step' => 'admin', 'globalSalt' => RootDB::getGlobalSalt() ]); } Json::die([ 'step' => 'done' ]);