From 1e1ddfafb8a45cf8787373996b57fdcfb2c3761e Mon Sep 17 00:00:00 2001 From: chenzhi <“chenzhi063@qq.com> Date: Wed, 27 Nov 2019 10:21:09 +0800 Subject: [PATCH] =?UTF-8?q?[bug]=E4=BF=AE=E6=94=B9=E6=8E=A8=E5=B9=BF?= =?UTF-8?q?=E5=90=8E=E5=8F=B0=E5=B9=B3=E5=8F=B0=E5=B8=81=E5=85=85=E5=80=BC?= =?UTF-8?q?=E6=89=8B=E7=BB=AD=E8=B4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Controller/CoinOrderController.class.php | 7 ++++--- Application/Home/View/default/CoinOrder/order_add.html | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Application/Home/Controller/CoinOrderController.class.php b/Application/Home/Controller/CoinOrderController.class.php index 16a086223..652bb5556 100644 --- a/Application/Home/Controller/CoinOrderController.class.php +++ b/Application/Home/Controller/CoinOrderController.class.php @@ -10,6 +10,7 @@ use QRcode; */ class CoinOrderController extends BaseController { + const LV = 2;//平台币充值手续费 public function page_show($model,$map,$p=1) { if (isset($_REQUEST['row'])) { @@ -89,7 +90,7 @@ class CoinOrderController extends BaseController //创建订单 public function order_add(){ - + $status = promoteCan(session('promote_auth.pid'), function($level) { if ($level == 1) { return true; @@ -104,7 +105,7 @@ class CoinOrderController extends BaseController $this->error('无权限操作'); } } - + $this->assign("LV",self::LV); if(IS_POST){ SafeFilter($_POST); $coin_num = I("coin_num"); @@ -122,7 +123,7 @@ class CoinOrderController extends BaseController $data['create_time'] = time(); $data['discount'] = "0"; if($pay_type==1){ // 在线转账 - $free = sprintf("%.2f",$coin_num*(0.2/100)); + $free = sprintf("%.2f",$coin_num*(self::LV/100)); $free = $free<'0.1' ? '0.1':$free; $data['pay_amount'] = bcadd($coin_num,$free,2); $data['order_status'] = 0; diff --git a/Application/Home/View/default/CoinOrder/order_add.html b/Application/Home/View/default/CoinOrder/order_add.html index abe4b71f3..ca65fc73a 100644 --- a/Application/Home/View/default/CoinOrder/order_add.html +++ b/Application/Home/View/default/CoinOrder/order_add.html @@ -42,7 +42,7 @@ 购买数量: - + 平台币 @@ -87,7 +87,7 @@ - (手续费说明:每笔交易支付服务商将收取 0.20% 手续费,最低收取0.1元,上不封顶) + (手续费说明:每笔交易支付服务商将收取 {$LV}% 手续费,最低收取0.1元,上不封顶) @@ -143,7 +143,7 @@ var rodio_val = $('.jspayradio input:radio:checked').val(); coin_num = (discount/100)*coin_num; if(rodio_val==1){ //在线转账 - var fee = coin_num*(0.2/100); + var fee = coin_num*({$LV}/100); if(fee<0.1){ fee=0.1 }