feat(StoreController): 修改店铺搜索接口返回格式

This commit is contained in:
mkm 2024-06-17 16:46:08 +08:00
parent 89596e38d3
commit adfd149e5d

@ -41,7 +41,7 @@ class StoreController extends BaseApiController
$info = StoreLogic::search($where);
if ($info) {
return $this->data($info?->toArray());
return $this->success('ok',$info?$info->toArray():[]);
} else {
return $this->fail('店铺不存在');
}