| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- namespace addons\QiJuhe\backend\controllers;
- use addons\QiJuhe\common\models\NoticeModel;
- use addons\QiJuhe\common\service\NoticeService;
- use addons\QiJuhe\common\service\OrderService;
- use addons\QiJuhe\common\service\QiGoodsService;
- /**
- * 消息通知
- */
- class NoticeController extends BaseController
- {
- public $enableCsrfValidation = false;
- /**
- * 列表
- *
- * @return string
- */
- public function actionIndex()
- {
- if (!$this->request->isAjax) {
- return $this->render('index');
- }
- $param = $this->request->get();
- $service = new NoticeService(['mall_id'=>$this->mall_id]);
- return $this->success('ok', $service->list($param));
- }
- /**
- * 类型
- *
- * @return void
- */
- public function actionType()
- {
- if ($this->request->isAjax) {
- return $this->success('ok', NoticeModel::$type_text);
- }
- }
- public function actionTest()
- {
- $service = new OrderService(['mall_id' => $this->mall_id]);
- $service->createOrder(7188);
-
- // QiGoodsService::add([710], $this->mall_id);
- }
- }
|