|
|
@@ -16,10 +16,13 @@ class CategoryController extends BaseController
|
|
|
//获取分类 ssh 2019.12.2
|
|
|
public function actionList()
|
|
|
{
|
|
|
-
|
|
|
+ //建立客户关系
|
|
|
CustomClass::buildRelation($this->shop, $this->user);
|
|
|
-
|
|
|
- $return = CategoryService::getEnableList($this->mainId);
|
|
|
+ $mainId = $this->mainId ?? 0;
|
|
|
+ $where = ['mainId' => $mainId, 'delStatus' => 0, 'status' => 1];
|
|
|
+ //默认列出正常分类,美团等第三方分类不列表
|
|
|
+ $where['style'] = 0;
|
|
|
+ $return = CategoryService::getAllList($where);
|
|
|
util::success($return);
|
|
|
}
|
|
|
|