| 12345678910111213141516171819202122232425262728293031 |
- <?php
- namespace addons\WechatVideoShop\backend\controllers;
- use addons\WechatVideoShop\common\service\OrderService;
- class OrderController extends BaseController
- {
- public $enableCsrfValidation = false;
- /**
- * @return string
- */
- public function actionIndex()
- {
- if ($this->request->isAjax) {
- if ($this->request->isGet) {
- $param = \Yii::$app->request->get();
- $service = new OrderService();
- $list = $service->getOrderList($this->mall_id, $param);
- if ($list === false) {
- return $this->error($service->getError());
- }
- return $this->success('数据请求成功', $list);
- }
- }
- return $this->render($this->action->id);
- }
- }
|