修复首页最新资源不显示问题

This commit is contained in:
Alone
2024-11-04 13:41:44 +08:00
parent d6f36c34ca
commit 79a17d758e
2 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ class Index extends QfShop
$map[] = ['is_delete', '=', 0];
$newList = $this->SourceModel->order(['create_time' => 'desc'])
->field('title,create_time as time')
->field('title,create_time as time,source_id as id')
->where($map)
->limit(Config('qfshop.ranking_num') ?? 1)
->select()->each(function($item,$key){