setList(); return Help::JsonCode($state['code'], $state['msg']); } //咨询推荐位------------------------------------------------------------------------------------------------- public function actionOnepushnews() { $list_id = Yii::$app->request->get('list_id'); return $this->render('onepushnews',['list_id'=>$list_id]); } //获取数据 public function actionOnepushnewsform() { $server = new ListnewsServer(); $state = $server->getListNews(); return Help::JsonData(0, $state['msg'], $state['count'], $state['data']); } //添加数据 public function actionOnepushnewsadd() { $list_id = Yii::$app->request->get('list_id'); return $this->render('onepushnewsadd',['list_id'=>$list_id]); } //数据 public function actionOnepushnewsaddform() { $server = new ListnewsServer(); //------------------数据验证---------------------- $state = $server->varcherListInfo(); if ($state['code'] == 200) { $state = $server->addListNews(); } return Help::JsonCode($state['code'], $state['msg']); } }