Skip to content

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

Closed
@windysea

Description

@windysea

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions