* Fix init.

This commit is contained in:
liyang
2022-09-14 09:14:48 +00:00
parent 8e47691358
commit c87c77b709
+2 -2
View File
@@ -62,10 +62,10 @@ include $testPath . 'config/config.php';
include $testPath. 'lib/db.class.php';
include $testPath. 'lib/rest.php';
$db = new db();
if($config->test->base) $rest = new rest($config->test->base);
if(!empty($config->test->account) and !empty($config->test->password))
if(!empty($config->test->account) and !empty($config->test->password) and !empty($config->test->base))
{
$rest = new rest($config->test->base);
$token = $rest->post('/tokens', array('account' => $config->test->account, 'password' => $config->test->password));
$token = $token->body;
}