feat : sts
This commit is contained in:
@@ -233,7 +233,7 @@ class GoodCache
|
|||||||
$imageList = $this->getOssObjects($imageIds);
|
$imageList = $this->getOssObjects($imageIds);
|
||||||
|
|
||||||
foreach ($list as &$item) {
|
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));
|
$this->redis->set($this->purchaseKey, json_encode($list));
|
||||||
|
|||||||
@@ -48,6 +48,6 @@ class Purchase extends Model
|
|||||||
*/
|
*/
|
||||||
public function getListByCycleIdAndKitchenId(int $cycleId, int $kitchenId): Collection|array
|
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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user