We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在BaseException类中
public function __construct(string $errorMessage = '', array $params = []) { parent::__construct(); if (!empty($errorMessage)) { $this->errorMessage = $errorMessage; $this->message=$errorMessage;//加一行这个可好 } if (!empty($params)) { if (array_key_exists('statusCode', $params)) { $this->statusCode = $params['statusCode']; } if (array_key_exists('header', $params)) { $this->header = $params['header']; } if (array_key_exists('errorCode', $params)) { $this->errorCode = $params['errorCode']; } if (array_key_exists('data', $params)) { $this->data = $params['data']; } } }
The text was updated successfully, but these errors were encountered:
你加这一行的使用场景是?没问题,你可以直接提交PR哦
Sorry, something went wrong.
No branches or pull requests
在BaseException类中
The text was updated successfully, but these errors were encountered: