request; if ($request->isAjax && $request->isPost) { $data = SystemService::getSystemConfig(); if ($data['status'] == 0) return $this->error($data['msg']); return $this->success('获取成功', $data['data']); } } public function actionGetWraparound() { return $this->success('获取成功', SystemService::getWraparound()); } public function actionGetSaleTrend() { return $this->success('获取成功', SystemService::getSaleTrend()); } public function actionGetSaleTrendMonth() { $type = Yii::$app->request->get('type', 'month'); return $this->success('获取成功', SystemService::getSaleTrendByMonth($type)); } }