From 863f9bb5fe2decceeb3dc409093b8f7fa70ee255 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Tue, 16 Mar 2021 14:28:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8F=90=E7=8E=B0=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/data/controller/UserTransfer.php | 31 +++++++++++-- app/data/view/user_transfer/index.html | 11 +++-- app/data/view/user_transfer/transfer.html | 54 +++++++++++++++++++++++ vendor/composer/autoload_classmap.php | 3 +- vendor/composer/autoload_static.php | 3 +- vendor/services.php | 2 +- 6 files changed, 95 insertions(+), 9 deletions(-) create mode 100644 app/data/view/user_transfer/transfer.html diff --git a/app/data/controller/UserTransfer.php b/app/data/controller/UserTransfer.php index 3732f4dcd..f00a108a7 100644 --- a/app/data/controller/UserTransfer.php +++ b/app/data/controller/UserTransfer.php @@ -22,7 +22,7 @@ class UserTransfer extends Controller private $table = 'DataUserTransfer'; /** - * 奖励提现配置 + * 提现配置配置 * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException @@ -30,10 +30,35 @@ class UserTransfer extends Controller public function config() { $this->skey = 'TransferRule'; - $this->title = '奖励提现配置'; + $this->title = '提现规则配置'; + $this->_sysdata(); + } + + /** + * 微信提现配置 + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\DbException + * @throws \think\db\exception\ModelNotFoundException + */ + public function transfer() + { + $this->skey = 'TransferWxpay'; + $this->title = '微信提现配置'; + $this->_sysdata(); + } + + /** + * 配置数据处理 + * @param string $tpl 模板文件 + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\DbException + * @throws \think\db\exception\ModelNotFoundException + */ + private function _sysdata($tpl = '') + { if ($this->request->isGet()) { $this->data = sysdata($this->skey); - $this->fetch(); + $this->fetch($tpl); } else { sysdata($this->skey, $this->request->post()); $this->success('配置修改成功'); diff --git a/app/data/view/user_transfer/index.html b/app/data/view/user_transfer/index.html index a14127e05..29350e9ab 100644 --- a/app/data/view/user_transfer/index.html +++ b/app/data/view/user_transfer/index.html @@ -1,11 +1,16 @@ {extend name="../../admin/view/main"} {block name="button"} - -提现配置 + +微信商户配置 + + +提现规则配置 + + -打款服务 +后台打款服务 {/block} diff --git a/app/data/view/user_transfer/transfer.html b/app/data/view/user_transfer/transfer.html new file mode 100644 index 000000000..635dd87a8 --- /dev/null +++ b/app/data/view/user_transfer/transfer.html @@ -0,0 +1,54 @@ +
+
+ +
+ 绑定公众号 + Bind WeChat Type +
+ {php} $data['wechat_type'] = $data['wechat_type'] ?? 'wxapp'; {/php} + {foreach ['wxapp'=>'微信小程序', 'wechat'=>'微信服务号'] as $k=>$v} + {if $k eq $data.wechat_type} + + {else} + + {/if}{/foreach} +
+ 请选择公众号类型,以决定用户 OPENID 字段,一定要保证与接口对应 +
+ + + + + + + + + +
+ +
+ +
+ + +
+
+ \ No newline at end of file diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php index c8aa0795a..488955df9 100644 --- a/vendor/composer/autoload_classmap.php +++ b/vendor/composer/autoload_classmap.php @@ -220,6 +220,7 @@ return array( 'app\\data\\controller\\UserDiscount' => $baseDir . '/app/data/controller/UserDiscount.php', 'app\\data\\controller\\UserMessage' => $baseDir . '/app/data/controller/UserMessage.php', 'app\\data\\controller\\UserNotify' => $baseDir . '/app/data/controller/UserNotify.php', + 'app\\data\\controller\\UserRebate' => $baseDir . '/app/data/controller/UserRebate.php', 'app\\data\\controller\\UserTransfer' => $baseDir . '/app/data/controller/UserTransfer.php', 'app\\data\\controller\\UserUpgrade' => $baseDir . '/app/data/controller/UserUpgrade.php', 'app\\data\\controller\\api\\Auth' => $baseDir . '/app/data/controller/api/Auth.php', @@ -233,9 +234,9 @@ return array( 'app\\data\\controller\\api\\auth\\Address' => $baseDir . '/app/data/controller/api/auth/Address.php', 'app\\data\\controller\\api\\auth\\Balance' => $baseDir . '/app/data/controller/api/auth/Balance.php', 'app\\data\\controller\\api\\auth\\Center' => $baseDir . '/app/data/controller/api/auth/Center.php', - 'app\\data\\controller\\api\\auth\\Config' => $baseDir . '/app/data/controller/api/auth/Config.php', 'app\\data\\controller\\api\\auth\\News' => $baseDir . '/app/data/controller/api/auth/News.php', 'app\\data\\controller\\api\\auth\\Order' => $baseDir . '/app/data/controller/api/auth/Order.php', + 'app\\data\\controller\\api\\auth\\Rebate' => $baseDir . '/app/data/controller/api/auth/Rebate.php', 'app\\data\\service\\DataService' => $baseDir . '/app/data/service/DataService.php', 'app\\data\\service\\GoodsService' => $baseDir . '/app/data/service/GoodsService.php', 'app\\data\\service\\MessageService' => $baseDir . '/app/data/service/MessageService.php', diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index dab9addea..2f22cfd6b 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -349,6 +349,7 @@ class ComposerStaticInit4f89fd0e0503ccf740f2fa5757825d7b 'app\\data\\controller\\UserDiscount' => __DIR__ . '/../..' . '/app/data/controller/UserDiscount.php', 'app\\data\\controller\\UserMessage' => __DIR__ . '/../..' . '/app/data/controller/UserMessage.php', 'app\\data\\controller\\UserNotify' => __DIR__ . '/../..' . '/app/data/controller/UserNotify.php', + 'app\\data\\controller\\UserRebate' => __DIR__ . '/../..' . '/app/data/controller/UserRebate.php', 'app\\data\\controller\\UserTransfer' => __DIR__ . '/../..' . '/app/data/controller/UserTransfer.php', 'app\\data\\controller\\UserUpgrade' => __DIR__ . '/../..' . '/app/data/controller/UserUpgrade.php', 'app\\data\\controller\\api\\Auth' => __DIR__ . '/../..' . '/app/data/controller/api/Auth.php', @@ -362,9 +363,9 @@ class ComposerStaticInit4f89fd0e0503ccf740f2fa5757825d7b 'app\\data\\controller\\api\\auth\\Address' => __DIR__ . '/../..' . '/app/data/controller/api/auth/Address.php', 'app\\data\\controller\\api\\auth\\Balance' => __DIR__ . '/../..' . '/app/data/controller/api/auth/Balance.php', 'app\\data\\controller\\api\\auth\\Center' => __DIR__ . '/../..' . '/app/data/controller/api/auth/Center.php', - 'app\\data\\controller\\api\\auth\\Config' => __DIR__ . '/../..' . '/app/data/controller/api/auth/Config.php', 'app\\data\\controller\\api\\auth\\News' => __DIR__ . '/../..' . '/app/data/controller/api/auth/News.php', 'app\\data\\controller\\api\\auth\\Order' => __DIR__ . '/../..' . '/app/data/controller/api/auth/Order.php', + 'app\\data\\controller\\api\\auth\\Rebate' => __DIR__ . '/../..' . '/app/data/controller/api/auth/Rebate.php', 'app\\data\\service\\DataService' => __DIR__ . '/../..' . '/app/data/service/DataService.php', 'app\\data\\service\\GoodsService' => __DIR__ . '/../..' . '/app/data/service/GoodsService.php', 'app\\data\\service\\MessageService' => __DIR__ . '/../..' . '/app/data/service/MessageService.php', diff --git a/vendor/services.php b/vendor/services.php index d64a75a5d..8d1c28caf 100644 --- a/vendor/services.php +++ b/vendor/services.php @@ -1,5 +1,5 @@ 'think\\admin\\Library',