From cf4df29e2f7af80ee67a34485cb961f6bdc958fe Mon Sep 17 00:00:00 2001 From: luzeagithub <62355456+luzeagithub@users.noreply.github.com> Date: Thu, 1 Jul 2021 17:44:04 +0200 Subject: [PATCH] rename debug.ini to config.ini --- shared/utils.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/shared/utils.php b/shared/utils.php index b2a637f..260cffc 100644 --- a/shared/utils.php +++ b/shared/utils.php @@ -54,7 +54,7 @@ function genUUID() { function sendWuPostRequest($url, $postData) { $req = curl_init($url); - $proxy = uupDumpApiGetDebug(); + $proxy = uupDumpApiGetConfig(); if(isset($proxy['proxy'])) { curl_setopt($req, CURLOPT_PROXY, $proxy['proxy']); } @@ -120,13 +120,12 @@ function consoleLogger($message, $showTime = 1) { fwrite(STDERR, $msg."\n"); } -function uupDumpApiGetDebug() { - if(!file_exists('debug.ini')) { +function uupDumpApiGetConfig() { + if(!file_exists('config.ini')) { return null; } - $data = parse_ini_file('debug.ini'); - return $data; + return parse_ini_file('config.ini'); } function uupApiCheckUpdateId($updateId) {