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

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

View File

@ -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('店铺不存在');
} }