入驻审核

pull/1/head
limu 10 months ago
parent 3008f74f7e
commit 3f2e3b3f10
  1. 16
      app/admin/controller/Store.php
  2. 6
      app/admin/model/Store.php

@ -139,4 +139,20 @@ class Store extends Controller
}
return $this->renderSuccess('操作成功');
}
/**
* 审核商城
* @param int $storeId
* @return Json
*/
public function audit(int $storeId): Json
{
// 商城详情
$model = StoreModel::detail($storeId);
if (!$model->auditStore($this->request->param())) {
return $this->renderError($model->getError() ?: '操作失败');
}
return $this->renderSuccess('操作成功');
}
}

@ -88,4 +88,10 @@ class Store extends StoreModel
return $this->save(['is_delete' => 1]);
});
}
public function auditStore(array $data)
{
$storeInfo = $this->toArray();
print_r($storeInfo);exit;
}
}

Loading…
Cancel
Save