public function editProfile($userPwd0, $userPwd1) { $instId = session('instId'); $operatorId = session('operatorId'); $operatorName = session('operatorName'); try { $operator = new \Home\Model\OperatorModel(); $result = $operator->queryOperator($operatorName, $userPwd0); if (!empty($result) && count($result) == 1) { $operatorId = $operator->saveOperatorPwd($instId, $operatorId, $userPwd1); $data = "true"; } else { $data = "originPwd wrong"; } } catch (Exception $e) { $data = "false"; } $this->ajaxReturn($data); }