Skip to content

Commit 8374971

Browse files
committed
修复完善用户标签修改接口
1 parent 214661b commit 8374971

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpUserTagServiceImpl.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ public Boolean tagUpdate(Integer id, String name) throws WxErrorException {
6666
String responseContent = this.wxMpService.post(url, json.toString());
6767
this.log.debug("\nurl:{}\nparams:{}\nresponse:{}", url, json.toString(), responseContent);
6868
WxError wxError = WxError.fromJson(responseContent);
69-
return wxError.getErrorCode() == 0;
69+
if (wxError.getErrorCode() == 0) {
70+
return true;
71+
}
72+
73+
throw new WxErrorException(wxError);
7074
}
7175
}

0 commit comments

Comments
 (0)