From cd09138b8e14218bb3fd21b8788eced1c6fe4934 Mon Sep 17 00:00:00 2001 From: Devil Date: Tue, 23 Feb 2021 12:16:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94=E7=94=A8=E5=9C=A8=E7=BA=BF=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/Index.php | 10 + .../admin/controller/Packageinstall.php | 72 ++++ .../admin/view/default/appmini/config.html | 2 +- .../admin/view/default/index/index.html | 2 +- .../view/default/packageinstall/index.html | 36 ++ .../view/default/pluginsadmin/save_info.html | 2 +- application/common.php | 38 ++- application/index/view/default/buy/index.html | 78 ++--- .../index/view/default/public/footer_nav.html | 8 +- application/service/AppMiniService.php | 2 +- application/service/PackageInstallService.php | 308 ++++++++++++++++++ application/service/PluginsAdminService.php | 17 +- application/service/StoreService.php | 6 +- application/tags.php | 104 ------ config/shopxo.php | 7 +- public/static/admin/default/js/index.js | 10 + .../static/admin/default/js/packageinstall.js | 95 ++++++ .../common/images/beian-gongan-icon.png | Bin 19256 -> 3216 bytes .../static/common/images/beian-icp-icon.png | Bin 3970 -> 2666 bytes public/static/common/js/common.js | 24 ++ public/static/index/default/css/buy.css | 2 +- public/static/index/default/css/common.css | 5 + public/static/index/default/css/goods.css | 2 +- .../common/2019/01/14/1547448748316693.png | Bin 54945 -> 10819 bytes 24 files changed, 660 insertions(+), 170 deletions(-) create mode 100644 application/admin/controller/Packageinstall.php create mode 100644 application/admin/view/default/packageinstall/index.html create mode 100644 application/service/PackageInstallService.php create mode 100644 public/static/admin/default/js/packageinstall.js diff --git a/application/admin/controller/Index.php b/application/admin/controller/Index.php index 10205e24b..856f8a633 100755 --- a/application/admin/controller/Index.php +++ b/application/admin/controller/Index.php @@ -46,6 +46,16 @@ class Index extends Common */ public function Index() { + // 默认进入页面初始化 + $to_url = MyUrl('admin/index/init'); + + // 是否指定页面地址 + if(!empty($this->data_request['to_url'])) + { + $to_url = base64_decode(urldecode($this->data_request['to_url'])); + } + + $this->assign('to_url', $to_url); return $this->fetch(); } diff --git a/application/admin/controller/Packageinstall.php b/application/admin/controller/Packageinstall.php new file mode 100644 index 000000000..bf2b3728b --- /dev/null +++ b/application/admin/controller/Packageinstall.php @@ -0,0 +1,72 @@ +IsLogin(); + + // 权限校验 + $this->IsPower(); + } + + /** + * 功能插件安装 + * @author Devil + * @blog http://gong.gg/ + * @version 1.0.0 + * @date 2018-09-28 + * @desc description + */ + public function Index() + { + $data = PackageInstallService::RequestInstallParams($this->data_request); + $this->assign('data', $data); + return $this->fetch(); + } + + /** + * 软件安装 + * @author Devil + * @blog http://gong.gg/ + * @version 1.0.0 + * @date 2021-02-22 + * @desc description + */ + public function Install() + { + return PackageInstallService::Install($this->data_post); + } +} +?> \ No newline at end of file diff --git a/application/admin/view/default/appmini/config.html b/application/admin/view/default/appmini/config.html index bea32e122..3f641e17d 100755 --- a/application/admin/view/default/appmini/config.html +++ b/application/admin/view/default/appmini/config.html @@ -77,7 +77,7 @@
-

1. 获取最新组件版本号,默认[ 1.2.7 ]

+

1. 获取最新组件版本号,默认[ 1.2.8 ]

2. 登录微信小程序平台,左侧导航[ 直播 ],申请直播权限后等待审核通过方可使用

3. 点击左侧导航[ 小程序直播->接入说明 ],找到[ 使用方法说明->1. 【直播组件】如何引入 ],json 代码串[ plugins->live-player-plugin ]参数下的[ version ]的值填入

去获取组件版本号 diff --git a/application/admin/view/default/index/index.html b/application/admin/view/default/index/index.html index ad0df3628..c2f107996 100755 --- a/application/admin/view/default/index/index.html +++ b/application/admin/view/default/index/index.html @@ -9,7 +9,7 @@ {{include file="public/menu" /}} - +
diff --git a/application/admin/view/default/packageinstall/index.html b/application/admin/view/default/packageinstall/index.html new file mode 100644 index 000000000..3f62190ee --- /dev/null +++ b/application/admin/view/default/packageinstall/index.html @@ -0,0 +1,36 @@ +{{include file="public/header" /}} + + +
+ + +
+

+ +

+

正在获取中...

+
+ + +
+

+ +

+

安装成功

+ 返回后台 +
+ + +
+

+ + 异常错误 +

+ 返回后台 +
+
+ + + +{{include file="public/footer" /}} + \ No newline at end of file diff --git a/application/admin/view/default/pluginsadmin/save_info.html b/application/admin/view/default/pluginsadmin/save_info.html index 6f0c5fb38..fbb0944db 100755 --- a/application/admin/view/default/pluginsadmin/save_info.html +++ b/application/admin/view/default/pluginsadmin/save_info.html @@ -16,7 +16,7 @@
- +