attributes = get_params(); $form->store_id = get_store_id(); $form->user_id = get_user_id(); $this->asJson($form->getBrandList()); } public function actionGetList() { $form = new GoodsBrandForm(); $form->attributes = get_params(); $form->store_id = get_store_id(); $form->user_id = get_user_id(); $this->asJson($form->getList()); } //获取品牌分类列表 public function actionGetBrandCatList() { $form = new GoodsBrandForm(); $form->attributes = get_params(); $form->store_id = get_store_id(); $form->user_id = get_user_id(); $this->asJson($form->getCatList()); } //关注/取消关注品牌 public function actionUserBrandSubscribe() { $form = new GoodsBrandForm(); $form->attributes = post_params(); $form->user_id = get_user_id(); $form->store_id = get_store_id(); $this->asJson($form->userBrandSubscribe()); } //获取品牌详情 public function actionBrandInfo() { $form = new GoodsBrandForm(); $form->attributes = get_params(); $form->store_id = get_store_id(); $form->user_id = get_user_id(); $form->md_id = get_md_id(); $this->asJson($form->brandInfo()); } }