From da012e80094099f8584966462a5da768bef25811 Mon Sep 17 00:00:00 2001
From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com>
Date: Fri, 27 Mar 2020 16:03:01 +0800
Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E9=80=89=E6=8B=A9Region?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
function/scf.php | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/function/scf.php b/function/scf.php
index 382a1ad..19e2e5e 100644
--- a/function/scf.php
+++ b/function/scf.php
@@ -139,6 +139,7 @@ function install()
if ($_GET['install1']) {
//if ($_POST['admin']!='') {
$tmp['language'] = $_POST['language'];
+ $tmp['Region'] = $_POST['Region'];
$SecretId = getConfig('SecretId');
if ($SecretId=='') {
$SecretId = $_POST['SecretId'];
@@ -149,7 +150,7 @@ function install()
$SecretKey = $_POST['SecretKey'];
$tmp['SecretKey'] = $SecretKey;
}
- $response = json_decode(SetbaseConfig($tmp, $_SERVER['function_name'], $_SERVER['Region'], $_SERVER['namespace'], $SecretId, $SecretKey), true)['Response'];
+ $response = json_decode(SetbaseConfig($tmp, $_SERVER['function_name'], $_POST['Region'], $_SERVER['namespace'], $SecretId, $SecretKey), true)['Response'];
if (api_error($response)) {
$html = api_error_msg($response);
$title = 'Error';
@@ -188,6 +189,21 @@ language:
';
';
$html .= '
+ (腾讯几个月了还不做出来,只能先弄选择了)