diff --git a/platform/HuaweiFG_env.php b/platform/HuaweiFG_env.php
index d3cebd9..f662608 100644
--- a/platform/HuaweiFG_env.php
+++ b/platform/HuaweiFG_env.php
@@ -1,4 +1,7 @@
';
$html .= '
';
}
- if (getConfig('HW_urn')==''||getConfig('HW_key')==''||getConfig('HW_secret')=='') $html .= '
+ //if (getConfig('HW_urn')==''||getConfig('HW_key')==''||getConfig('HW_secret')=='')
+ $html .= '
在函数代码操作页上方找到URN,鼠标放上去后显示URN,复制填入:
点击链接,新增访问密钥,
在下载的credentials.csv文件中找到对应信息,填入:
-
';
+
';
$html .= '
';
@@ -273,7 +268,8 @@ language:
';
}
function notnull(t)
{';
- if (getConfig('HW_urn')==''||getConfig('HW_key')==''||getConfig('HW_secret')=='') $html .= '
+ //if (getConfig('HW_urn')==''||getConfig('HW_key')==''||getConfig('HW_secret')=='')
+ $html .= '
if (t.HW_urn.value==\'\') {
alert(\'input URN\');
return false;
@@ -491,3 +487,54 @@ function addFileToZip($zip, $rootpath, $path = '')
function WaitFunction() {
return true;
}
+
+function changeAuthKey() {
+ if ($_POST['HW_key']!=''&&$_POST['HW_secret']!='') {
+ $tmp['HW_key'] = $_POST['HW_key'];
+ $tmp['HW_secret'] = $_POST['HW_secret'];
+ $response = setConfigResponse( SetbaseConfig($tmp, getConfig('HW_urn'), $tmp['HW_key'], $tmp['HW_secret']) );
+ if (api_error($response)) {
+ $html = api_error_msg($response);
+ $title = 'Error';
+ return message($html, $title, 400);
+ } else {
+ $html = getconstStr('Success') . '
+ ';
+ return message($html, $title, 201, 1);
+ }
+ }
+ $html = '
+