@@ -46,6 +46,13 @@ public class WxError implements Serializable { | |||||
this.errorMsg = errorMsg; | this.errorMsg = errorMsg; | ||||
} | } | ||||
public WxError(int errorCode, String errorMsg,String errorMsgEn,String json) { | |||||
this.errorCode = errorCode; | |||||
this.errorMsg = errorMsg; | |||||
this.errorMsgEn = errorMsgEn; | |||||
this.json = json; | |||||
} | |||||
public static WxError fromJson(String json) { | public static WxError fromJson(String json) { | ||||
return fromJson(json, null); | return fromJson(json, null); | ||||
} | } | ||||
@@ -48,7 +48,7 @@ public interface WxOpenMaPrivacyService { | |||||
* @param dto 参数对象 | * @param dto 参数对象 | ||||
* @throws WxErrorException 如果出错,抛出此异常 | * @throws WxErrorException 如果出错,抛出此异常 | ||||
*/ | */ | ||||
void setPrivacySetting(SetPrivacySetting dto) throws WxErrorException; | |||||
String setPrivacySetting(SetPrivacySetting dto) throws WxErrorException; | |||||
/** | /** | ||||
@@ -38,8 +38,8 @@ public class WxOpenMaPrivacyServiceImpl implements WxOpenMaPrivacyService { | |||||
} | } | ||||
@Override | @Override | ||||
public void setPrivacySetting(SetPrivacySetting dto) throws WxErrorException { | |||||
wxMaService.post(OPEN_SET_PRIVACY_SETTING, dto); | |||||
public String setPrivacySetting(SetPrivacySetting dto) throws WxErrorException { | |||||
return wxMaService.post(OPEN_SET_PRIVACY_SETTING, dto); | |||||
} | } | ||||
@SneakyThrows | @SneakyThrows | ||||