Update functions.php

pull/13/head
qkqpttgf 2020-01-01 14:19:47 +08:00 committed by GitHub
parent aad9e6d73c
commit 91489b4253
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -248,7 +248,7 @@ function get_refresh_token()
$tmp['client_id'] = $_POST['client_id'];
$tmp['client_secret'] = $_POST['client_secret'];
}
echo '<pre>'. json_encode($tmp, JSON_PRETTY_PRINT).'</pre>';
//echo '<pre>'. json_encode($tmp, JSON_PRETTY_PRINT).'</pre>';
$response = setConfig($tmp);
$title = $constStr['MayinEnv'][$constStr['language']];
$html = $constStr['Wait'][$constStr['language']] . ' 3s<meta http-equiv="refresh" content="3;URL=' . $url . '?install2">';
@ -438,6 +438,7 @@ function setConfig($arr)
foreach ($arr as $k1 => $v1) {
$evns[$k1] = $v1;
}
echo '<pre>'. json_encode($envs, JSON_PRETTY_PRINT).'</pre>';
$envs = array_filter($envs, 'array_value_isnot_null');
ksort($envs);
echo '<pre>'. json_encode($envs, JSON_PRETTY_PRINT).'</pre>';