mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-10-29 01:18:36 +08:00
🎨 修复模板消息行业枚举”其它“文字错误问题(官方文档和接口实际返回不一致)
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user