From d4324ffc2d9a4f83f7a2421cb120ef5c31c3c3bd Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Wed, 1 Jan 2020 14:32:35 +0800 Subject: [PATCH] Update functions.php --- functions.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/functions.php b/functions.php index 2b72c23..405563c 100644 --- a/functions.php +++ b/functions.php @@ -248,7 +248,6 @@ function get_refresh_token() $tmp['client_id'] = $_POST['client_id']; $tmp['client_secret'] = $_POST['client_secret']; } - //echo '
'. json_encode($tmp, JSON_PRETTY_PRINT).'
'; $response = setConfig($tmp); $title = $constStr['MayinEnv'][$constStr['language']]; $html = $constStr['Wait'][$constStr['language']] . ' 3s'; @@ -434,17 +433,12 @@ function array_value_isnot_null($arr) function setConfig($arr) { - //echo '
'. json_encode($arr, JSON_PRETTY_PRINT).'
'; $envs = json_decode(file_get_contents('config.json')); - if ($envs=='') $envs = []; foreach ($arr as $k1 => $v1) { - echo $k1 . '=' . $v1 .'
'; $envs[$k1] = $v1; } - //echo '
'. json_encode($envs, JSON_PRETTY_PRINT).'
'; $envs = array_filter($envs, 'array_value_isnot_null'); ksort($envs); - echo '
'. json_encode($envs, JSON_PRETTY_PRINT).'
'; return file_put_contents('config.json', json_encode($envs, JSON_PRETTY_PRINT)); }