diff --git a/application/admin/controller/Theme.php b/application/admin/controller/Theme.php index 98771e3a5a008b46e3a8433e60824f79cbf52381..8e36df1d7da8e26ac55d63305d7cfe66ceb746f0 100755 --- a/application/admin/controller/Theme.php +++ b/application/admin/controller/Theme.php @@ -119,5 +119,26 @@ class Theme extends Common // 开始处理 return ThemeService::ThemeUpload(input()); } + + /** + * 主题打包 + * @author Devil + * @blog http://gong.gg/ + * @version 1.0.0 + * @date 2019-03-22 + * @desc description + */ + public function Download() + { + // 开始处理 + $ret = ThemeService::ThemeDownload(input()); + if(isset($ret['code']) && $ret['code'] != 0) + { + $this->assign('msg', $ret['msg']); + return $this->fetch('public/tips_error'); + } else { + return $ret; + } + } } ?> \ No newline at end of file diff --git a/application/admin/view/default/payment/index.html b/application/admin/view/default/payment/index.html index 08f2fa5755d33bc5f43200fd8029dc3ea4240bbd..cf2a2866606169dd3e29c6c5b803d61a89f51063 100755 --- a/application/admin/view/default/payment/index.html +++ b/application/admin/view/default/payment/index.html @@ -121,13 +121,20 @@
-

1 类名必须于文件名一致(去除 .php ),如 Alipay.php 则取 Alipay
2 类必须定义三个方法
    2.1 Config 配置方法
    2.2 Pay 支付方法
    2.3 Respond 回调方法

-

PS:以上条件不满足则无法查看插件

+

+ 1 类名必须于文件名一致(去除 .php ),如 Alipay.php 则取 Alipay
+ 2 类必须定义三个方法
+     2.1 Config 配置方法
+     2.2 Pay 支付方法
+     2.3 Respond 回调方法
+     2.4 Refund 退款方法(可选) +

+

PS:以上条件不满足则无法查看插件,将插件放入.zip压缩包中、支持一个压缩中包含多个支付插件

- -
+ +
diff --git a/application/admin/view/default/pluginsadmin/upload.html b/application/admin/view/default/pluginsadmin/upload.html index 44b1543a94a2dfc152db40897c43dd2e744d510d..17ccd67c413a34007670b8f6d5020d735cdb4b1d 100755 --- a/application/admin/view/default/pluginsadmin/upload.html +++ b/application/admin/view/default/pluginsadmin/upload.html @@ -8,13 +8,13 @@ - +
- + 上传一个zip压缩格式的应用安装包 -
+
diff --git a/application/admin/view/default/theme/index.html b/application/admin/view/default/theme/index.html index 7cbf2b656e61b51296d5b172fcb7fb92e85d88ea..278c05880411dd05c79a6fb8da4304d37bdabf36 100755 --- a/application/admin/view/default/theme/index.html +++ b/application/admin/view/default/theme/index.html @@ -19,9 +19,14 @@