Skip to content
New issue

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

feat: 为client 增加 set httpClient 公有方法 #378

Merged
merged 1 commit into from
Jun 15, 2024

Conversation

wangbaolong
Copy link
Contributor

@wangbaolong wangbaolong commented Jan 4, 2024

为wechat.ClientV3 新增了一个构造方法,支持自定义xhttp.Client。

@wangbaolong wangbaolong force-pushed the refactor-wechat-v3client branch from d657e96 to 9397a81 Compare January 4, 2024 06:20
@iGoogle-ink
Copy link
Member

@wangbaolong 意义何在?有什么需要特殊配置的参数吗?

@iGoogle-ink
Copy link
Member

如果真的需要,用 client.SetHttpClient() 这样的方法设置吧,不用在New的时候初始化

@wangbaolong wangbaolong force-pushed the refactor-wechat-v3client branch from 9397a81 to 5f5caa6 Compare February 1, 2024 05:03
@wangbaolong
Copy link
Contributor Author

目的是为了能方便设置链路追踪的一些信息

@wangbaolong wangbaolong force-pushed the refactor-wechat-v3client branch from 5f5caa6 to b9251dc Compare February 1, 2024 05:08
@wangbaolong wangbaolong changed the title refactor: 微信构造cleint增加xhttp.Client参数 feat: 为client 增加 set client 公有方法 Feb 2, 2024
@wangbaolong wangbaolong changed the title feat: 为client 增加 set client 公有方法 feat: 为client 增加 set httpClient 公有方法 Feb 2, 2024
@iGoogle-ink iGoogle-ink merged commit ccd817a into go-pay:main Jun 15, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants