From 8e3ee63a44b8dc7b642603bc902154a72f517784 Mon Sep 17 00:00:00 2001 From: liuweiwen <“529520975@qq.com> Date: Wed, 26 Feb 2020 15:12:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=AE=A1=E6=A0=B8=E8=A7=84?= =?UTF-8?q?=E5=88=99=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/ResourceVerifyConfigController.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Application/Admin/Controller/ResourceVerifyConfigController.class.php b/Application/Admin/Controller/ResourceVerifyConfigController.class.php index c71ac61ff..9d11f32aa 100644 --- a/Application/Admin/Controller/ResourceVerifyConfigController.class.php +++ b/Application/Admin/Controller/ResourceVerifyConfigController.class.php @@ -114,9 +114,9 @@ class ResourceVerifyConfigController extends ThinkController if (I('old_value_ratio')<0 || I('old_value_ratio') > 100) { $this->error('可申请额度占总充值量的比例必须在0-100之间'); } + $game_name = trim(I('game_name')); $model = M($this->modelName, 'tab_'); - $save['game_id'] = I('game_id'); - $save['game_name'] = trim(I('game_name')); + $save['game_name'] = $game_name; $save['sdk_version'] = I('sdk_version'); $save['new_apply_count'] = I('new_apply_count'); $save['new_low_value'] = I('new_low_value'); @@ -136,7 +136,7 @@ class ResourceVerifyConfigController extends ThinkController $saveAll[] = $save; } } else { - $game_id = DM('game')->where(['relation_game_name' => I('game_name')])->getField('id'); + $game_id = DM('game')->where(['relation_game_name' => I('game_name'), 'sdk_version' => I('sdk_version')])->getField('id'); $save['game_id'] = $game_id; $saveAll[] = $save; }