request->get(); $service = new CenterService(['mall_id' => $this->mall_id]); return $this->success('ok', $service->getPageListOrderByDistance($this->user_id, $params)); } /** * 选择运营中心 * * @return string */ public function actionSelectOperation() { $id = $this->request->get('id', 0); if (empty($id)) return $this->error('ID不能为空'); $service = new CenterService(['mall_id' => $this->mall_id]); return $service->selectOperation($this->user_id, $id) ? $this->success('ok') : $this->error($service->getError()); } /** * 当前运营中心 * * @return string */ public function actionCurrent() { $service = new CenterService(['mall_id' => $this->mall_id]); return $this->success( 'ok', $service->currentOperation($this->user_id) ); } }