作者 lyh

gx

... ... @@ -70,6 +70,8 @@ class NewsCategoryController extends BaseController
public function add(NewsCategoryRequest $request,NewsCategoryLogic $newsCategoryLogic){
$request->validated();
//添加时,验证分类上级分类是否有,有则更新到当前分类中,没有时直接添加
var_dump('11111');
die();
$newsCategoryLogic->add_news_category();
$this->response('success');
}
... ...
... ... @@ -60,8 +60,6 @@ class NewsCategoryLogic extends BaseLogic
$this->verifyParamName($this->param['name']);
//参数处理
$this->param = $this->addParamProcessing($this->param);
var_dump('11111');
die();
DB::beginTransaction();
try {
$cate_id = $this->model->insertGetId($this->param);
... ...