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

This commit is contained in:
Binary Wang 2016-09-11 17:51:45 +08:00
parent 214661b6c6
commit 8374971045

View File

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