MaterialLevelAuth::class, ] ]; return ArrayHelper::merge($merge, parent::behaviors()); } public function actionMaterialCategory(){ $form = new MaterialForm(); $form->store_id = get_store_id(); $this->asJson($form->getMaterialCategory()); } public function actionMaterialList(){ $form = new MaterialForm(); $form->store_id = get_store_id(); $form->attributes = get_params(); $this->asJson($form->getMaterialList()); } public function actionMaterialItem(){ $form = new MaterialForm(); $form->store_id = get_store_id(); $form->id = get_params('id'); $this->asJson($form->getMaterialItem()); } public function actionDownloadStatistics(){ $form = new MaterialForm(); $form->store_id = get_store_id(); $form->id = get_params('id'); $this->asJson($form->getDownloadStatistics()); } /** * @return mixed|string * 获取推广海报 */ public function actionGetQrcode() { $form = new ShareQrcodeForm(); $form->store_id = get_store_id(); $form->type = Qrcode::TYPE_MATERIAL; $form->user = get_user(); $form->user_id = get_user_id(); $form->id = get_params('id'); return $this->asJson($form->search()); } }