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

mp包中的WxMpTemplateIndustryEnum反序列化bug #1571

Closed
windysea opened this issue May 20, 2020 · 2 comments
Closed

mp包中的WxMpTemplateIndustryEnum反序列化bug #1571

windysea opened this issue May 20, 2020 · 2 comments

Comments

@windysea
Copy link

WxMpTemplateIndustryEnum 枚举反序列化时,使用WxMpIndustryGsonAdapter
通过convertFromJson 返回WxMpTemplateIndustryEnum时通过WxMpTemplateIndustryEnum.findBySecondary(secondClass)方法中的equals(secondClass)返回枚举,而反序列化的adapter中却通过截取字符串返回secondClass
if (secondClass.contains("|")) {
secondClass = secondClass.split("\|")[1];
}

windysea pushed a commit to ariesbaba/WxJava that referenced this issue May 20, 2020
@binarywang
Copy link
Owner

#1413 楼主是否看过这里,并跑下对应的单元测试看看?

@binarywang
Copy link
Owner

目前在当前基础上对代码进行了尽可能的优化,以减少由于官方文档跟实际接口不一致情况导致的问题。当然如果以后官方接口还要继续做调整,无法完全兼顾的话,再考虑做彻底的改造。

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

No branches or pull requests

2 participants