Browse Source

修复完善用户标签修改接口

master
Binary Wang 8 years ago
parent
commit
8374971045
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpUserTagServiceImpl.java

+ 5
- 1
weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpUserTagServiceImpl.java View File

@@ -66,6 +66,10 @@ public class WxMpUserTagServiceImpl implements WxMpUserTagService {
String responseContent = this.wxMpService.post(url, json.toString()); String responseContent = this.wxMpService.post(url, json.toString());
this.log.debug("\nurl:{}\nparams:{}\nresponse:{}", url, json.toString(), responseContent); this.log.debug("\nurl:{}\nparams:{}\nresponse:{}", url, json.toString(), responseContent);
WxError wxError = WxError.fromJson(responseContent); WxError wxError = WxError.fromJson(responseContent);
return wxError.getErrorCode() == 0;
if (wxError.getErrorCode() == 0) {
return true;
}

throw new WxErrorException(wxError);
} }
} }

Loading…
Cancel
Save