From 1dc1d4b72d58ec24ce8c3e300a1b9b8c40a3f69a Mon Sep 17 00:00:00 2001 From: gongfuxiang <2499232802@qq.com> Date: Sun, 16 Jun 2019 16:22:43 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/Theme.php | 21 ++ .../admin/view/default/payment/index.html | 15 +- .../view/default/pluginsadmin/upload.html | 6 +- .../admin/view/default/theme/index.html | 11 +- .../admin/view/default/theme/upload.html | 6 +- application/service/PaymentService.php | 79 ++++-- application/service/PluginsAdminService.php | 2 +- application/service/ThemeService.php | 82 ++++++ config/shopxo.sql | 41 ++- extend/payment/Alipay.php | 2 +- extend/payment/CodePayAlipay.php | 249 ------------------ extend/payment/CodePayQQ.php | 249 ------------------ extend/payment/CodePayWeixin.php | 249 ------------------ extend/payment/Weixin.php | 2 +- public/static/common/js/common.js | 7 +- public/static/index/default/css/goods.css | 2 +- 16 files changed, 227 insertions(+), 796 deletions(-) delete mode 100644 extend/payment/CodePayAlipay.php delete mode 100644 extend/payment/CodePayQQ.php delete mode 100644 extend/payment/CodePayWeixin.php 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 @@