Wechat-Group / WxJava

微信开发 Java SDK ,支持包括微信支付,开放平台,小程序,企业微信,视频号,公众号等的后端开发
Apache License 2.0
29.48k stars 8.5k forks source link

希望优化一下代码 #3287

Closed ChenJiaXin520 closed 2 months ago

ChenJiaXin520 commented 2 months ago

我提交过两个简单的pr,查看项目代码的时候发现wxjava-java-mp公众号模块的RequestExecutor的实现类有很多重复代码,例如: HttpPost httpPost = new HttpPost(uri); if (requestHttp.getRequestHttpProxy() != null) { RequestConfig config = RequestConfig.custom().setProxy(requestHttp.getRequestHttpProxy()).build(); httpPost.setConfig(config); } 另外还有RequestHttp这个泛型类使用也不规范,很多类在使用中并没有明确指明泛型的类型

binarywang commented 2 months ago

你可以直接提交PR进行优化吧

ChenJiaXin520 commented 2 months ago

牵涉有点多,改动比较大,建议还是你们主力开发者修改