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); } }