feat : spu
This commit is contained in:
@@ -80,7 +80,7 @@ class CycleListService extends CateringBaseService
|
||||
public function skuList()
|
||||
{
|
||||
$spuList = $this->spuModel->where('caterer_id',$this->adminId)->select(['title','sub_title','id as spu_id'])->get();
|
||||
if (empty($skuList)) return $this->return->success('success',['list' => []]);
|
||||
if (empty($spuList)) return $this->return->success('success',['list' => []]);
|
||||
$spuList = $spuList->toArray();
|
||||
|
||||
$skuList = $this->skuModel->where('spu_id',array_column($spuList,'spu_id'))->pluck('id','spu_id');
|
||||
|
||||
Reference in New Issue
Block a user