diff --git a/app/data/controller/api/auth/Transfer.php b/app/data/controller/api/auth/Transfer.php new file mode 100644 index 000000000..772bb788a --- /dev/null +++ b/app/data/controller/api/auth/Transfer.php @@ -0,0 +1,50 @@ +_vali([ + 'code.value' => CodeExtend::uniqidDate(20, 'T'), + 'type.require' => '提现方式不能为空!', + 'amount.require' => '提现金额不能为空!', + ]); + + $chargeRate = floatval(UserTransferService::instance()->config('transfer_charge')); + $chargeAmount = $chargeRate * $data['amount']; + } + + public function get() + { + } + + /** + * 获取用户提现配置 + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\DbException + * @throws \think\db\exception\ModelNotFoundException + */ + public function config() + { + $data = UserTransferService::instance()->config(); + $this->success('获取用户提现配置', $data); + } +} \ No newline at end of file diff --git a/app/data/view/user_transfer/config.html b/app/data/view/user_transfer/config.html index e52af8893..a74471259 100644 --- a/app/data/view/user_transfer/config.html +++ b/app/data/view/user_transfer/config.html @@ -14,14 +14,14 @@