From d1c240bd915408ace7df08b20bb1a40fba310742 Mon Sep 17 00:00:00 2001 From: Karson Date: Tue, 26 Mar 2024 17:51:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=8F=92=E4=BB=B6=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E6=9C=AC=E5=9C=B0=E5=AE=89=E8=A3=85=E5=8D=87=E7=BA=A7?= =?UTF-8?q?=E5=92=8C=E7=89=88=E6=9C=AC=E6=A3=80=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 优化前台 优化fieldlist组件 优化上传组件传递参数 优化composer依赖 --- application/admin/controller/Addon.php | 3 ++- application/admin/lang/zh-cn/addon.php | 1 + application/admin/view/addon/index.html | 5 +++++ composer.json | 8 ++++++-- public/assets/css/frontend.css | 4 ++++ public/assets/js/backend/addon.js | 19 ++++++++++++++----- public/assets/js/require-form.js | 2 +- public/assets/js/require-upload.js | 8 ++++---- public/assets/less/frontend.less | 6 ++++++ 9 files changed, 43 insertions(+), 13 deletions(-) diff --git a/application/admin/controller/Addon.php b/application/admin/controller/Addon.php index d0918c43..ae5b5f83 100644 --- a/application/admin/controller/Addon.php +++ b/application/admin/controller/Addon.php @@ -230,6 +230,7 @@ class Addon extends Backend $uid = $this->request->post("uid"); $token = $this->request->post("token"); $faversion = $this->request->post("faversion"); + $force = $this->request->post("force"); if (!$uid || !$token) { throw new Exception(__('Please login and try to install')); } @@ -238,7 +239,7 @@ class Addon extends Backend 'token' => $token, 'faversion' => $faversion ]; - $info = Service::local($file, $extend); + $info = Service::local($file, $extend, $force); } catch (AddonException $e) { $this->result($e->getData(), $e->getCode(), __($e->getMessage())); } catch (Exception $e) { diff --git a/application/admin/lang/zh-cn/addon.php b/application/admin/lang/zh-cn/addon.php index f8e3fa6c..abbcb254 100755 --- a/application/admin/lang/zh-cn/addon.php +++ b/application/admin/lang/zh-cn/addon.php @@ -33,6 +33,7 @@ return [ 'Store not available tips' => '插件市场暂不可用,是否切换到本地插件?', 'Switch to the local' => '切换到本地插件', 'try to reload' => '重新尝试加载', + 'Please disable addon first' => '请先禁用插件再进行操作', 'Please disable the add before trying to upgrade' => '请先禁用插件再进行升级', 'Please disable the add before trying to uninstall' => '请先禁用插件再进行卸载', 'Login now' => '立即登录', diff --git a/application/admin/view/addon/index.html b/application/admin/view/addon/index.html index 1c7f7262..e72defaf 100644 --- a/application/admin/view/addon/index.html +++ b/application/admin/view/addon/index.html @@ -167,6 +167,11 @@ +