Compare commits

...

2 Commits

Author SHA1 Message Date
ch4o5
28e0ceed11 chore(release): 0.2.8 2023-02-03 02:37:22 +00:00
李东云
c8f9b793ee fix(commonHandler): 修复了一处兼容问题 2023-02-03 10:30:32 +08:00
4 changed files with 10 additions and 3 deletions

View File

@@ -1,4 +1,11 @@
# 版本更新日志
### [0.2.8](http://124.126.16.154:8888/singularity/HyperfDevelopmentKitCore/compare/v0.2.7...v0.2.8) (2023-02-03)
### 🐛 Bug Fixes | Bug 修复
* **commonHandler:** 修复了一处兼容问题 ([c8f9b79](http://124.126.16.154:8888/singularity/HyperfDevelopmentKitCore/commit/c8f9b793ee7c2ba4d77a2779b6825211dcf52636))
### [0.2.7](http://124.126.16.154:8888/singularity/HyperfDevelopmentKitCore/compare/v0.2.6...v0.2.7) (2023-02-02)

View File

@@ -1 +1 @@
0.2.7
0.2.8

View File

@@ -110,5 +110,5 @@
"url": "https://repo.huaweicloud.com/repository/php/"
}
},
"version": "0.2.7"
"version": "0.2.8"
}

View File

@@ -67,7 +67,7 @@ class CommonHandler extends ExceptionHandler
$message_name = config('common.response.message_name');
$is_testing = config('app_status') === true;
$this->request?->url();
$is_debug = $this->request?->hasHeader('Postman-Token') || str_starts_with($this->request?->header('User-Agent'), 'apifox');
$is_debug = $this->request?->hasHeader('Postman-Token') || str_starts_with($this->request?->header('User-Agent', ''), 'apifox');
$error_type = $throwable::class;
$request_time = date('Y-m-d H:i:s');
$request_data = Json::encode($this->request?->getParsedBody());