修改i哎

master
ELF 4 years ago
parent 91996da3a2
commit 874ba3a705

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

Loading…
Cancel
Save