From 874ba3a705fe3e7993f955647a5ff5715e68621b Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Thu, 28 Jan 2021 18:50:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9i=E5=93=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Base/Service/PromoteService.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Application/Base/Service/PromoteService.class.php b/Application/Base/Service/PromoteService.class.php index 9c906a7ad..8bd829d15 100644 --- a/Application/Base/Service/PromoteService.class.php +++ b/Application/Base/Service/PromoteService.class.php @@ -1090,7 +1090,7 @@ class PromoteService { $fullChain = $data['chain'] . $insert; $fullChainList = explode('/', trim($fullChain, '/')); - M('promote', 'tab_')->where(['id' => $insert])->update([ + M('promote', 'tab_')->where(['id' => $insert])->save([ 'level1_id' => $fullChainList[0] ?? 0, 'level2_id' => $fullChainList[1] ?? 0, 'level3_id' => $fullChainList[2] ?? 0, @@ -1269,7 +1269,7 @@ class PromoteService { public function getHistoryGameIds($promote) { $topPromote = $this->getTopPromote($promote); - $key = Redis::getKey('promote_history_games', ['promote_id' => $item['level1_id']]); + $key = Redis::getKey('promote_history_games', ['promote_id' => $topPromote['level1_id']]); $value = Redis::get($key); $historyGameIds = $value ? explode(',', $value) : []; $nowGameIds = $topPromote['game_ids'] == '' ? [] : explode(',', $topPromote['game_ids']);