|
|
@ -139,4 +139,20 @@ class Store extends Controller |
|
|
|
} |
|
|
|
} |
|
|
|
return $this->renderSuccess('操作成功'); |
|
|
|
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('操作成功'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|