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']);