setter
parent
6380fffd35
commit
25f5e11caa
|
@ -221,13 +221,14 @@ class Consumer extends Base
|
||||||
return $this->request->domain() . $value;
|
return $this->request->domain() . $value;
|
||||||
});
|
});
|
||||||
}, $orders);
|
}, $orders);
|
||||||
if(!empty($list["list"])){
|
|
||||||
|
if(!empty($list["list"]->toArray())){
|
||||||
return $this->json(1,"ok",$list["list"]);
|
return $this->json(1,"ok",$list["list"]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$whereMap = [];
|
$whereMap = [];
|
||||||
$whereMap[] = ['position', '=', Slide::advertisement];
|
$whereMap[] = ['position', '=', Slide::advertisement];
|
||||||
$list = $repo->slideList($whereMap, ["id","title","src as image","url","url_type as type"], $page, $size, function ($q){
|
$list = $repo->slideList($whereMap, ["id","title","src as image","url","url_type as type"], $page, $size, function ($q){
|
||||||
|
|
Loading…
Reference in New Issue