diff --git a/application/admin/controller/Addon.php b/application/admin/controller/Addon.php index 720c977c..8d11cf4a 100644 --- a/application/admin/controller/Addon.php +++ b/application/admin/controller/Addon.php @@ -266,15 +266,17 @@ class Addon extends Backend $info = []; try { + $info = get_addon_info($name); $uid = $this->request->post("uid"); $token = $this->request->post("token"); $version = $this->request->post("version"); $faversion = $this->request->post("faversion"); $extend = [ - 'uid' => $uid, - 'token' => $token, - 'version' => $version, - 'faversion' => $faversion + 'uid' => $uid, + 'token' => $token, + 'version' => $version, + 'oldversion' => $info['version'] ?? '', + 'faversion' => $faversion ]; //调用更新的方法 $info = Service::upgrade($name, $extend); @@ -337,7 +339,6 @@ class Addon extends Backend $v['flag'] = ''; $v['banner'] = ''; $v['image'] = ''; - $v['donateimage'] = ''; $v['demourl'] = ''; $v['price'] = __('None'); $v['screenshots'] = []; diff --git a/application/admin/view/addon/index.html b/application/admin/view/addon/index.html index f220cd83..1222332f 100644 --- a/application/admin/view/addon/index.html +++ b/application/admin/view/addon/index.html @@ -239,7 +239,7 @@ <% if(typeof item.releaselist !="undefined" && item.releaselist.length>1){%> {:__('Install')} @@ -247,14 +247,13 @@ <% }else if(typeof item.releaselist !="undefined" && item.releaselist.length>0){%> {:__('Install')} <% } %> diff --git a/application/index/view/index/index.html b/application/index/view/index/index.html index fe0e3c62..5ef2ba5e 100755 --- a/application/index/view/index/index.html +++ b/application/index/view/index/index.html @@ -1,86 +1,34 @@ -
+ - - - - - + + + -网站(Website)是指在因特网上根据一定的规则,使用HTML(标准通用标记语言)等工具制作的用于展示特定内容相关网页的集合。简单地说,网站是一种沟通工具,人们可以通过网站来发布自己想要公开的资讯,或者利用网站来提供相关的网络服务。
- - -