/*** 操作成功* @param string $msg 提示消息* @param mixed $data 返回数据* @param int $code 错误码* @param string|null $type 输出类型* @param array $header 发送的 header 信息* @param array $options Response 输出参数*/protected function success(string $msg = '', mixed $data = null, int $code = 1, string $type = null, array $header = [], array $options = []): void{$this->result($msg, $data, $code, $type, $header, $options);}/*** 操作失败* @param string $msg 提示消息* @param mixed $data 返回数据* @param int $code 错误码
| USER | www |
| HOME | /home/www |
| HTTP_ACCEPT_ENCODING | gzip, br, zstd, deflate |
| HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
| HTTP_ACCEPT | */* |
| PATH_INFO | |
| HTTP_HOST | cod-api.betterwedo.cn |
| REDIRECT_STATUS | 200 |
| SERVER_NAME | cod-api.betterwedo.cn |
| SERVER_PORT | 443 |
| SERVER_ADDR | 172.22.22.118 |
| REMOTE_PORT | 59603 |
| REMOTE_ADDR | 216.73.216.106 |
| SERVER_SOFTWARE | nginx/1.28.0 |
| GATEWAY_INTERFACE | CGI/1.1 |
| HTTPS | on |
| REQUEST_SCHEME | https |
| SERVER_PROTOCOL | HTTP/2.0 |
| DOCUMENT_ROOT | /www/wwwroot/cod-api.betterwedo.cn/public |
| DOCUMENT_URI | /index.php |
| REQUEST_URI | / |
| SCRIPT_NAME | /index.php |
| CONTENT_LENGTH | |
| CONTENT_TYPE | |
| REQUEST_METHOD | GET |
| QUERY_STRING | |
| SCRIPT_FILENAME | /www/wwwroot/cod-api.betterwedo.cn/public/index.php |
| FCGI_ROLE | RESPONDER |
| PHP_SELF | /index.php |
| REQUEST_TIME_FLOAT | 1773119091.6476 |
| REQUEST_TIME | 1773119091 |