From 22a69b4d16bb6bae1f827db0ac62bbf3bd08e920 Mon Sep 17 00:00:00 2001 From: ariesbaba Date: Wed, 20 May 2020 11:31:46 +0800 Subject: [PATCH] fix issue #1571 --- .../weixin/mp/util/json/WxMpIndustryGsonAdapter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/json/WxMpIndustryGsonAdapter.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/json/WxMpIndustryGsonAdapter.java index 04d9d7dadd..0725f7d817 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/json/WxMpIndustryGsonAdapter.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/json/WxMpIndustryGsonAdapter.java @@ -29,9 +29,9 @@ public WxMpTemplateIndustry deserialize(JsonElement jsonElement, Type type, Json private WxMpTemplateIndustryEnum convertFromJson(JsonObject json) { String secondClass = GsonHelper.getString(json, "second_class"); - if (secondClass.contains("|")) { - secondClass = secondClass.split("\\|")[1]; - } +// if (secondClass.contains("|")) { +// secondClass = secondClass.split("\\|")[1]; +// } return WxMpTemplateIndustryEnum.findBySecondary(secondClass); }