feat(StoreController): 修改店铺搜索接口返回格式
This commit is contained in:
parent
89596e38d3
commit
adfd149e5d
@ -41,7 +41,7 @@ class StoreController extends BaseApiController
|
|||||||
|
|
||||||
$info = StoreLogic::search($where);
|
$info = StoreLogic::search($where);
|
||||||
if ($info) {
|
if ($info) {
|
||||||
return $this->data($info?->toArray());
|
return $this->success('ok',$info?$info->toArray():[]);
|
||||||
} else {
|
} else {
|
||||||
return $this->fail('店铺不存在');
|
return $this->fail('店铺不存在');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user