门店入驻后台接口

wysf
ztt 9 months ago
parent a4d44d7b10
commit 11badcb84e
  1. 2
      app/common/model/store/StoreSettle.php
  2. 6
      app/store/controller/Store.php

@ -33,7 +33,7 @@ class StoreSettle extends BaseModel
'status_text'
];
protected function getStatusText($value, $data): string
protected function getStatusTextAttr($value, $data): string
{
if ($data['status'] == 0) {
return '待审核';

@ -52,7 +52,7 @@ class Store extends Controller
/**
* 门店入驻列表
*/
public function getStoreSettleList(): array {
public function settleList(): Json {
$list = StoreSettle::where('store_id', '=', $this->storeId)
->select();
return $this->renderSuccess($list->toArray());
@ -61,9 +61,9 @@ class Store extends Controller
/**
* 门店入驻详情
*/
public function getStoreSettleDetail(int $id): Json
public function settleDetail(int $id): Json
{
$detail = StoreSettle::get($id);
return $this->renderSuccess($detail->toArray());
return $this->renderSuccess(compact('detail'));
}
}

Loading…
Cancel
Save