check set result in install

This commit is contained in:
root
2020-08-18 10:00:28 +08:00
parent ce4fc41443
commit 0a7887409c
5 changed files with 30 additions and 5 deletions
+6 -1
View File
@@ -121,7 +121,12 @@ function install()
global $constStr;
if ($_GET['install2']) {
$tmp['admin'] = $_POST['admin'];
setConfig($tmp);
$response = setConfigResponse( setConfig($tmp) );
if (api_error($response)) {
$html = api_error_msg($response);
$title = 'Error';
return message($html, $title, 201);
}
if (needUpdate()) {
OnekeyUpate();
return message('update to github version, reinstall.