From de5ccd74cb2213cac8a6c24dc04cd42734400216 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 3 Jan 2021 16:29:33 +0800 Subject: [PATCH] fix: modify tag --- platform/AliyunFC.php | 2 +- platform/BaiduCFC.php | 2 +- platform/Heroku.php | 2 +- platform/HuaweiFG_env.php | 2 +- platform/TencentSCF_env.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/platform/AliyunFC.php b/platform/AliyunFC.php index 016666c..0ad210e 100644 --- a/platform/AliyunFC.php +++ b/platform/AliyunFC.php @@ -110,7 +110,7 @@ function setConfig($arr, $disktag = '') if ($operatedisk) { if (isset($arr['disktag_newname']) && $arr['disktag_newname']!='') { $tmp['disktag'] = str_replace($arr['disktag_rename'], $arr['disktag_newname'], getConfig('disktag')); - $tmp[$arr['disktag_newname']] = $tmp[$arr['disktag_rename']]; + $tmp[$arr['disktag_newname']] = getConfig($arr['disktag_rename']); $tmp[$arr['disktag_rename']] = ''; } else { $disktags = array_unique($disktags); diff --git a/platform/BaiduCFC.php b/platform/BaiduCFC.php index 56090c7..4a81908 100644 --- a/platform/BaiduCFC.php +++ b/platform/BaiduCFC.php @@ -100,7 +100,7 @@ function setConfig($arr, $disktag = '') if ($operatedisk) { if (isset($arr['disktag_newname']) && $arr['disktag_newname']!='') { $tmp['disktag'] = str_replace($arr['disktag_rename'], $arr['disktag_newname'], getConfig('disktag')); - $tmp[$arr['disktag_newname']] = $tmp[$arr['disktag_rename']]; + $tmp[$arr['disktag_newname']] = getConfig($arr['disktag_rename']); $tmp[$arr['disktag_rename']] = ''; } else { $disktags = array_unique($disktags); diff --git a/platform/Heroku.php b/platform/Heroku.php index d7ddbe9..9d22aa7 100644 --- a/platform/Heroku.php +++ b/platform/Heroku.php @@ -111,7 +111,7 @@ function setConfig($arr, $disktag = '') if ($oparetdisk) { if (isset($arr['disktag_newname']) && $arr['disktag_newname']!='') { $tmp['disktag'] = str_replace($arr['disktag_rename'], $arr['disktag_newname'], getConfig('disktag')); - $tmp[$arr['disktag_newname']] = $tmp[$arr['disktag_rename']]; + $tmp[$arr['disktag_newname']] = getConfig($arr['disktag_rename']); $tmp[$arr['disktag_rename']] = null; } else { $disktags = array_unique($disktags); diff --git a/platform/HuaweiFG_env.php b/platform/HuaweiFG_env.php index e4501ca..e97c2a7 100644 --- a/platform/HuaweiFG_env.php +++ b/platform/HuaweiFG_env.php @@ -124,7 +124,7 @@ function setConfig($arr, $disktag = '') if ($oparetdisk) { if (isset($arr['disktag_newname']) && $arr['disktag_newname']!='') { $tmp['disktag'] = str_replace($arr['disktag_rename'], $arr['disktag_newname'], getConfig('disktag')); - $tmp[$arr['disktag_newname']] = $tmp[$arr['disktag_rename']]; + $tmp[$arr['disktag_newname']] = getConfig($arr['disktag_rename']); $tmp[$arr['disktag_rename']] = ''; } else { $disktags = array_unique($disktags); diff --git a/platform/TencentSCF_env.php b/platform/TencentSCF_env.php index afa89c6..2f4ab80 100644 --- a/platform/TencentSCF_env.php +++ b/platform/TencentSCF_env.php @@ -107,7 +107,7 @@ function setConfig($arr, $disktag = '') if ($operatedisk) { if (isset($arr['disktag_newname']) && $arr['disktag_newname']!='') { $tmp['disktag'] = str_replace($arr['disktag_rename'], $arr['disktag_newname'], getConfig('disktag')); - $tmp[$arr['disktag_newname']] = $tmp[$arr['disktag_rename']]; + $tmp[$arr['disktag_newname']] = getConfig($arr['disktag_rename']); $tmp[$arr['disktag_rename']] = ''; } else { $disktags = array_unique($disktags);