diff --git a/platform/TencentSCF.php b/platform/TencentSCF_file.php similarity index 90% rename from platform/TencentSCF.php rename to platform/TencentSCF_file.php index 5eb867d..dd86fbe 100644 --- a/platform/TencentSCF.php +++ b/platform/TencentSCF_file.php @@ -170,12 +170,18 @@ function install() $SecretKey = $_POST['SecretKey']; $tmp['SecretKey'] = $SecretKey; } + $tmp['ONEMANAGER_CONFIG_SAVE'] = $_POST['ONEMANAGER_CONFIG_SAVE']; $response = json_decode(SetbaseConfig($tmp, $_SERVER['function_name'], $_SERVER['Region'], $_SERVER['namespace'], $SecretId, $SecretKey), true)['Response']; if (api_error($response)) { $html = api_error_msg($response); $title = 'Error'; return message($html, $title, 201); } else { + if ($tmp['ONEMANAGER_CONFIG_SAVE'] != 'file') { + $html = getconstStr('ONEMANAGER_CONFIG_SAVE_ENV') . '
' . getconstStr('Home') . ''; + $title = 'Reinstall'; + return message($html, $title, 201); + } $html .= '

@@ -208,6 +214,9 @@ language:
';

'; $html .= ' +
+
'; + $html .= '