Skip to content

Commit 4339c4d

Browse files
🎨 #2550【开放平台】第三方平台新增全局错误码的中文描述
1 parent 8430122 commit 4339c4d

File tree

2 files changed

+9210
-0
lines changed

2 files changed

+9210
-0
lines changed

weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxError.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ public static WxError fromJson(String json, WxType type) {
8484
}
8585
break;
8686
}
87+
case Open: {
88+
final String msg = WxOpenErrorMsgEnum.findMsgByCode(wxError.getErrorCode());
89+
if (msg != null) {
90+
wxError.setErrorMsg(msg);
91+
}
92+
break;
93+
}
8794
default:
8895
return wxError;
8996
}

0 commit comments

Comments
 (0)