|
|
@@ -64,4 +64,15 @@ class CategoryController extends BaseController
|
|
|
util::ok();
|
|
|
}
|
|
|
|
|
|
+ //删除分类 shish 2019.12.28
|
|
|
+ public function actionDelete()
|
|
|
+ {
|
|
|
+ $get = Yii::$app->request->get();
|
|
|
+ $categoryId = isset($get['categoryId']) ? $get['categoryId'] : 0;
|
|
|
+ $status = isset($get['status']) ? $get['status'] : 0;
|
|
|
+ $category = CategoryService::getById($categoryId);
|
|
|
+ CategoryService::valid($category, $this->merchantId);
|
|
|
+ util::ok('删除成功');
|
|
|
+ }
|
|
|
+
|
|
|
}
|