File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
weixin-java-common/src/main/java/me/chanjar/weixin/common/error Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 11package me .chanjar .weixin .common .error ;
22
3+ import java .io .Serializable ;
4+
5+ import org .apache .commons .lang3 .StringUtils ;
6+
37import lombok .Builder ;
48import lombok .Data ;
59import me .chanjar .weixin .common .WxType ;
610import me .chanjar .weixin .common .util .json .WxGsonBuilder ;
7- import org .apache .commons .lang3 .StringUtils ;
8-
9- import java .io .Serializable ;
1011
1112/**
1213 * 微信错误码.
@@ -22,17 +23,18 @@ public class WxError implements Serializable {
2223 private static final long serialVersionUID = 7869786563361406291L ;
2324
2425 /**
25- * 微信错误代码
26+ * 微信错误代码.
2627 */
2728 private int errorCode ;
2829
2930 /**
30- * 微信错误信息(如果可以翻译为中文,就为中文)
31+ * 微信错误信息.
32+ * (如果可以翻译为中文,就为中文)
3133 */
3234 private String errorMsg ;
3335
3436 /**
35- * 微信接口返回的错误原始信息(英文)
37+ * 微信接口返回的错误原始信息(英文).
3638 */
3739 private String errorMsgEn ;
3840
@@ -44,7 +46,7 @@ public static WxError fromJson(String json) {
4446
4547 public static WxError fromJson (String json , WxType type ) {
4648 final WxError wxError = WxGsonBuilder .create ().fromJson (json , WxError .class );
47- if (StringUtils .isNotEmpty (wxError .getErrorMsgEn ())) {
49+ if (StringUtils .isNotEmpty (wxError .getErrorMsg ())) {
4850 wxError .setErrorMsgEn (wxError .getErrorMsg ());
4951 }
5052
You can’t perform that action at this time.
0 commit comments