From 72cfd9ec64c705e4f89ddabd80ada8d239f3a3e6 Mon Sep 17 00:00:00 2001 From: jbRotk <2436953959@qq.com> Date: Thu, 6 Feb 2020 16:57:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=B8=A0=E9=81=93=E8=B4=B9?= =?UTF-8?q?=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/ToolController.class.php | 7 + Application/Admin/View/Tool/payset.html | 120 +++++++++++++++++- 2 files changed, 120 insertions(+), 7 deletions(-) diff --git a/Application/Admin/Controller/ToolController.class.php b/Application/Admin/Controller/ToolController.class.php index 7f8dd1d22..86afa7aee 100644 --- a/Application/Admin/Controller/ToolController.class.php +++ b/Application/Admin/Controller/ToolController.class.php @@ -28,6 +28,13 @@ class ToolController extends ThinkController { $map_['name']=array("in",'wei_xin,wei_xin_app,weixin'); M('tool','tab_')->where($map_)->setField('status','0'); } + if (!is_numeric($config['channel_rate'])) { + $this->error('请输入正确的渠道费率'); + } + if ($config['channel_rate'] > 100) { + $this->error('渠道费率最大值为100%'); + } + $config['channel_rate'] = round($config['channel_rate'], 2); $flag = M('Tool','tab_')->where($map)->setField($data); if($flag !== false){ $config['status']=$_POST['status']; diff --git a/Application/Admin/View/Tool/payset.html b/Application/Admin/View/Tool/payset.html index 6ce600f37..52a7ee57a 100644 --- a/Application/Admin/View/Tool/payset.html +++ b/Application/Admin/View/Tool/payset.html @@ -216,7 +216,6 @@ -