🎨 修复模板消息行业枚举”其它“文字错误问题(官方文档和接口实际返回不一致)

This commit is contained in:
playersun
2022-11-11 20:16:22 +08:00
committed by Binary Wang
parent d94b42b6ee
commit 60fdf91ce7

View File

@ -175,9 +175,9 @@ public enum WxMpTemplateIndustryEnum {
*/ */
PRINTING("印刷", "印刷", 40), PRINTING("印刷", "印刷", 40),
/** /**
* 其 - 其 * 其 - 其
*/ */
OTHER("", "", 41); OTHER("", "", 41);
/** /**
* 主行业(一级行业) * 主行业(一级行业)
@ -205,10 +205,7 @@ public enum WxMpTemplateIndustryEnum {
return industryEnum; return industryEnum;
} }
} }
if (Objects.equals(firstClass, "其他") && Objects.equals(secondClass, "其他")) {
//微信返回的其他行业实际上为"其他",而非"其它",此处兼容处理
return OTHER;
}
return null; return null;
} }