...
|
...
|
@@ -415,11 +415,15 @@ class Store extends Api |
|
|
public function store()
|
|
|
{
|
|
|
$store = $this->get_store();
|
|
|
$img_arr = Db::name('store_banner')->order('weigh','DESC')->column('image');
|
|
|
foreach ($img_arr as &$v) {
|
|
|
$v = cdnurl($v);
|
|
|
}
|
|
|
$return = [
|
|
|
'id' => $store['id'],
|
|
|
'store_icon' => $store['store_icon'] ? cdnurl($store['store_icon'],true) : cdnurl('/assets/img/avatar.png',true),
|
|
|
'store_name' => $store['store_name'],
|
|
|
'image_arr' => $store['image_arr'],
|
|
|
'image_arr' => $img_arr,
|
|
|
];
|
|
|
$this->success('成功',$return);
|
|
|
}
|
...
|
...
|
|