diff --git a/application/admin/controller/Theme.php b/application/admin/controller/Theme.php index 98771e3a5..8e36df1d7 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 08f2fa575..cf2a28666 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 44b1543a9..17ccd67c4 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 7cbf2b656..278c05880 100755 --- a/application/admin/view/default/theme/index.html +++ b/application/admin/view/default/theme/index.html @@ -19,9 +19,14 @@