更新界面详情

This commit is contained in:
2025-05-28 17:25:16 +08:00
parent 5d791d84ed
commit 352540b500
13 changed files with 1742 additions and 1312 deletions
+4 -1
View File
@@ -227,12 +227,16 @@ class GameController extends BaseController
$prevGame = Resources::where('id', '<', $id)
->where('delete_time', null)
->where('status', 1)
->where('cate', $game['cate'])
->field(['id', 'title'])
->order('id DESC')
->find();
$nextGame = Resources::where('id', '>', $id)
->where('delete_time', null)
->where('status', 1)
->where('cate', $game['cate'])
->field(['id', 'title'])
->order('id ASC')
->find();
@@ -247,7 +251,6 @@ class GameController extends BaseController
->field([
'g.id',
'g.title',
'g.desc',
'IF(g.icon IS NULL OR g.icon = "", c.icon, g.icon) as icon'
])
->order('g.id DESC')