From b8ec26a3e992c4a4a9fa28bf178305323562c6e9 Mon Sep 17 00:00:00 2001 From: liuweiwen <“529520975@qq.com> Date: Mon, 17 Feb 2020 16:25:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E4=BD=9C=E6=96=B9=E5=BC=80=E7=A5=A8?= =?UTF-8?q?=E7=A8=8E=E7=82=B9=E7=99=BE=E5=88=86=E6=AF=94=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E5=AD=98=E5=B0=8F=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/PartnerController.class.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Application/Admin/Controller/PartnerController.class.php b/Application/Admin/Controller/PartnerController.class.php index 35c3d9f6a..563f7f621 100644 --- a/Application/Admin/Controller/PartnerController.class.php +++ b/Application/Admin/Controller/PartnerController.class.php @@ -137,6 +137,8 @@ class PartnerController extends ThinkController $value['game'] = $parseGames[$value['id']]; $value['has_game_evidence'] = $parseGames['has_game_evidence'] ? '有' : '没有'; $value['is_sign_contract'] = $parseGames['is_sign_contract'] ? '是' : '否'; + $value['channel_rate'] *= 100; + $value['invoice_rate'] *= 100; if ($value['settlement_type'] == 0) { $value['settlement_type'] = '未配置'; } elseif ($value['settlement_type'] == 1) { @@ -238,8 +240,8 @@ class PartnerController extends ThinkController $save['matche_platform'] = I('matche_platform'); $save['contract_start_time'] = strtotime(I('contract_start_time')); $save['contract_end_time'] = strtotime(I('contract_end_time')); - $save['channel_rate'] = I('channel_rate'); - $save['invoice_rate'] = I('invoice_rate') ?: 0; + $save['channel_rate'] = I('channel_rate')/100; + $save['invoice_rate'] = (I('invoice_rate') ?: 0)/100; $save['is_sign_contract'] = I('is_sign_contract'); $save['settlement_type'] = I('settlement_type'); $save['has_game_evidence'] = I('has_game_evidence'); @@ -338,8 +340,9 @@ class PartnerController extends ThinkController $save['matche_platform'] = I('matche_platform'); $save['contract_start_time'] = strtotime(I('contract_start_time')); $save['contract_end_time'] = strtotime(I('contract_end_time')); - $save['channel_rate'] = I('channel_rate'); - $save['invoice_rate'] = I('invoice_rate') ?: 0; + $save['channel_rate'] = I('channel_rate')/100; + $save['invoice_rate'] = (I('invoice_rate') ?: 0)/100; + $save['is_sign_contract'] = I('is_sign_contract'); $save['settlement_type'] = I('settlement_type'); $save['has_game_evidence'] = I('has_game_evidence'); @@ -366,6 +369,8 @@ class PartnerController extends ThinkController } $data['contract_start_time'] = date('Y-m-d', $data['contract_start_time']); $data['contract_end_time'] = date('Y-m-d', $data['contract_end_time']); + $data['channel_rate'] *= 100;//存的是小数,显示百分比 + $data['invoice_rate'] *= 100;//存的是小数,显示百分比 // dd($data); $this->assign('data', $data); $action = I('action');