feat : sts

This commit is contained in:
2025-04-18 09:29:27 +08:00
parent 79dd6b8c58
commit 14f061d037
2 changed files with 2 additions and 2 deletions

View File

@@ -233,7 +233,7 @@ class GoodCache
$imageList = $this->getOssObjects($imageIds);
foreach ($list as &$item) {
$item['url'] = $imageList[$sku['image_id']]['url'] ?? '';
$item['url'] = $imageList[$item['image_id']]['url'] ?? '';
}
$this->redis->set($this->purchaseKey, json_encode($list));

View File

@@ -48,6 +48,6 @@ class Purchase extends Model
*/
public function getListByCycleIdAndKitchenId(int $cycleId, int $kitchenId): Collection|array
{
return $this->where('cycle_id',$cycleId)->where('kitchen_id',$kitchenId)->select('id','name','remark','sku_ids')->get();
return $this->where('cycle_id',$cycleId)->where('kitchen_id',$kitchenId)->select('id','name','remark','sku_ids','image_id')->get();
}
}