From 9bd7a5ae6e1c0458969ed57b22adcdd9e4fd763a Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Sun, 23 Feb 2020 14:09:40 +0800 Subject: [PATCH] Update scf.php --- function/scf.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/function/scf.php b/function/scf.php index f2556e7..2a54565 100644 --- a/function/scf.php +++ b/function/scf.php @@ -142,9 +142,7 @@ function get_refresh_token() '; setConfig([ 'refresh_token' => $tmptoken, 'token_expires' => time()+30*24*60*60 ], $_COOKIE['disktag']); savecache('access_token', $ret['access_token'], $ret['expires_in'] - 60); - $trynum = 0; - while( json_decode(getfunctioninfo($_SERVER['function_name'], $_SERVER['Region'], $_SERVER['namespace'], getConfig('SecretId'), getConfig('SecretKey')),true)['Response']['Status']!='Active' ) echo ' -'.++$trynum; + WaitSCFStat(); $str .= ' '; return message($str, getconstStr('WaitJumpIndex'));