shish il y a 6 ans
Parent
commit
5a55fa6360
1 fichiers modifiés avec 11 ajouts et 0 suppressions
  1. 11 0
      app/business/controllers/CategoryController.php

+ 11 - 0
app/business/controllers/CategoryController.php

@@ -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('删除成功');
+	}
+
 }