From e56256ba1dcd85fe76c5372d208cea06f437f942 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Sat, 9 Nov 2019 16:37:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Base/Service/PromoteService.class.php | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/Application/Base/Service/PromoteService.class.php b/Application/Base/Service/PromoteService.class.php index 25032493e..05e1372d6 100644 --- a/Application/Base/Service/PromoteService.class.php +++ b/Application/Base/Service/PromoteService.class.php @@ -380,18 +380,9 @@ class PromoteService { return ['status' => false, 'msg' => '系统异常,修改用户推广员失败']; } - $status = M('user_play', 'tab_')->where($otherMap)->save($updateData); - if (!$status) { - $model->rollback(); - return ['status' => false, 'msg' => '系统异常,修改玩家推广员失败']; - } + M('user_play', 'tab_')->where($otherMap)->save($updateData); + M('user_play_info', 'tab_')->where($otherMap)->save($updateData); - $status = M('user_play_info', 'tab_')->where($otherMap)->save($updateData); - if (!$status) { - $model->rollback(); - return ['status' => false, 'msg' => '系统异常,修改角色推广员失败']; - } - M('spend', 'tab_')->where($otherMap)->where(['is_check' => ['in','1,2']])->save($updateData); // 只改未对账的数据 M('deposit', 'tab_')->where($otherMap)->save($updateData); M('bind_spend', 'tab_')->where($otherMap)->save($updateData);