李东云 2dace65933 fix(exceptions): 处理 HTTP 客户端和服务器异常
- 在 CommonHandler 中添加了对 GuzzleHttp 客户端和服务器异常的处理
- 解析异常响应内容,提取错误代码和消息
- 根据异常类型设置相应的状态码

Signed-off-by: 李东云 <dongyu.li@luxcreo.ai>
2024-12-06 10:07:42 +08:00
2024-09-12 11:47:31 +00:00
2024-09-12 11:47:31 +00:00
2022-12-19 17:20:04 +08:00
2022-12-19 17:20:04 +08:00
2022-12-19 17:20:04 +08:00

Hyperf Development Kit Core

The Common HDK for Any project by Hyperf.

PHP Versions

This version will work on Hyperf version 2.2 and above.

Getting Started

PHP 8.0 or above and Composer is expected to be installed on our system.

Installing Composer

For instructions on how to install Composer visit getcomposer.org.

Installing

After cloning this repository, change into the newly created directory and run

composer config secure-http false \
&& composer config repo.lux-map composer https://satis.luxcreo.cn/ \
&& composer require singularity/hdk-core \
&& php bin/hyperf.php vendor:publish singularity/hdk-core

This will install all dependencies needed for the project.

Running the Tests

All tests can be run by executing

composer test

Pest will automatically find all tests inside the tests directory and run them based on the configuration in the phpunit.xml file.

Built With

License

This project is licensed under the MIT License - see the LICENCE.md file for details.

Description
HDK核心组件
Readme 719 KiB
2025-08-19 09:49:06 +08:00
Languages
PHP 99.2%
Shell 0.8%