123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?php
- namespace backend\controllers\listhouse;
- use backend\base\CommonController;
- use backend\base\Help;
- use Yii;
- use backend\server\ListhouseServer;
- class IndexpushController extends CommonController
- {
-
- public function actionSet()
- {
- $server = new ListhouseServer();
- $state = $server->setList();
- return Help::JsonCode($state['code'], $state['msg']);
- }
-
- public function actionOnepushhouse()
- {
- $list_id = Yii::$app->request->get('list_id');
- return $this->render('onepushhouse',['list_id'=>$list_id]);
- }
-
- public function actionOnepushhouseform()
- {
- $server = new ListhouseServer();
- $state = $server->getListHouse();
- return Help::JsonData(0, $state['msg'], $state['count'], $state['data']);
- }
-
- public function actionOnepushhouseadd()
- {
- $list_id = Yii::$app->request->get('list_id');
- return $this->render('onepushhouseadd',['list_id'=>$list_id]);
- }
-
- public function actionOnepushhouseaddform()
- {
- $server = new ListhouseServer();
-
- $state = $server->varcherListInfo();
- if ($state['code'] == 200) {
- $state = $server->addListHouse();
- }
- return Help::JsonCode($state['code'], $state['msg']);
- }
- }
|