From 27bc9ab013ec70cc2bf98b7fe2fb0f6ccb360457 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Mon, 20 Jan 2020 16:56:30 +0800 Subject: [PATCH] Update scf.php --- function/scf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/function/scf.php b/function/scf.php index 0d1e94a..e25568d 100644 --- a/function/scf.php +++ b/function/scf.php @@ -107,7 +107,7 @@ function get_refresh_token() setConfig([ 'refresh_token' => $tmptoken ]); savecache('access_token', $ret['access_token'], $ret['expires_in'] - 60); $trynum = 0; - while( json_decode(getfunctioninfo($_SERVER['function_name'], $_SERVER['Region'], $_SERVER['namespace'], $SecretId, $SecretKey),true)['Response']['Status']!='Active' ) echo ' + while( json_decode(getfunctioninfo($_SERVER['function_name'], $_SERVER['Region'], $_SERVER['namespace'], getConfig('SecretId'), getConfig('SecretKey')),true)['Response']['Status']!='Active' ) echo ' '.++$trynum; $str .= ' ';