首页手动模式下商品缺失修复

feat/task1-c-wallet
Devil 2020-12-21 11:30:34 +08:00
parent 270bb2ce44
commit e6fd19079f
1 changed files with 2 additions and 0 deletions

View File

@ -162,6 +162,8 @@ class SiteService
['is_shelves', '=', 1],
],
'field' => 'id,title,images',
'm' => 0,
'n' => 0,
]);
// 使用商品id作为key返回
$goods = empty($ret['data']) ? [] : array_column($ret['data'], null, 'id');