all(); $params = $validator->check($params, 'sms_login'); if (!is_array($params)) { return showJson($params, false); } if(!$result = DriverService::make()->loginByMobile($params)){ return showJson(DriverService::make()->getError(), false); } return showJson(DriverService::make()->getError(), true, $result); } /** * 司机注销 * @return array */ public function logout() { if($result = DriverService::make()->logout($this->driverId, $this->userInfo)){ return showJson(1002, true); } return showJson(1003, false); } }