response->errorBadRequest($msg); } /** * 验证错误 * @param $msg * User: Mead */ protected function errorNoValidation($msg, $code = 422) { Log::error($msg); $this->response->error($msg, $code); } /** * 验证错误 * @param $msg * User: Mead */ protected function errorNoYundong($msg) { $this->response->error($msg, 450); } /** * 异常错误 * @param $msg * User: Mead */ protected function errorException($msg) { Log::error($msg); $this->response->error($msg, 423); } /** * 获取当前登录的用户的openid * @return mixed * User: Mead */ protected function getOpenId() { return $this->user->auth->credential; } }