From 25b319f87c622294ceb2243ba4843a4ee09086ad Mon Sep 17 00:00:00 2001 From: chenxiaojun <956334972@qq.com> Date: Sun, 17 Nov 2019 16:49:50 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=90=8E=E5=8F=B0->=E6=B8=B8?= =?UTF-8?q?=E6=88=8F--=E5=8E=BB=E9=99=A4CP=E5=88=86=E6=88=90=E6=AF=94?= =?UTF-8?q?=E4=BE=8B=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/GameController.class.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/Application/Admin/Controller/GameController.class.php b/Application/Admin/Controller/GameController.class.php index 49f9d602f..86d530a69 100644 --- a/Application/Admin/Controller/GameController.class.php +++ b/Application/Admin/Controller/GameController.class.php @@ -349,17 +349,7 @@ class GameController extends ThinkController $this->error($game->getError()); } else { \Think\Log::actionLog('Game/edit', 'Game', 1); - $thisGameRatio = I('post.ratio', 0); - if ($gameRatio != $thisGameRatio) { - $spendRes = M('Spend', 'tab_')->where(array('game_id' => $id, 'pay_status' => 1, 'selle_status' => 0))->save(array('selle_ratio' => $thisGameRatio)); - if ($spendRes === false) { - $this->error('更新成功,推广充值分成比例同步失败'); - } else { - $this->success($res['id'] ? '更新成功' : '新增成功', U('lists', array('type' => I('post.type'), 'p' => I('request.p')))); - } - } else { - $this->success($res['id'] ? '更新成功' : '新增成功', U('lists', array('type' => I('post.type'), 'p' => I('request.p')))); - } + $this->success($res['id'] ? '更新成功' : '新增成功', U('lists', array('type' => I('post.type'), 'p' => I('request.p')))); } } else {