src/Leevel/Http/ApiResponse.php
protected function normalizeErrorMessage(?string $message = null, ?string $text = null): IResponse
    {
        return $this->setData([
            'message' => $this->parseErrorMessage($message),
        ]);
    }
protected function normalizeErrorMessage(?string $message = null, ?string $text = null): IResponse
    {
        return $this->setData([
            'message' => $this->parseErrorMessage($message),
        ]);
    }
格式化错误消息.

@param string      $message
@param null|string $text

@return $this