规范部分代码

This commit is contained in:
Binary Wang
2017-12-16 18:50:07 +08:00
parent d804d153fc
commit b1aafae6da
12 changed files with 69 additions and 53 deletions

View File

@ -213,7 +213,7 @@ public class WxMpCardServiceImpl implements WxMpCardService {
WxMpCardResult cardResult = WxMpGsonBuilder.INSTANCE.create().fromJson(tmpJsonElement,
new TypeToken<WxMpCardResult>() {
}.getType());
if (!cardResult.getErrorCode().equals("0")) {
if (!"0".equals(cardResult.getErrorCode())) {
this.log.warn("朋友的券mark失败{}", cardResult.getErrorMsg());
}
}

View File

@ -227,6 +227,7 @@ public abstract class WxMpServiceAbstractImpl<H, P> implements WxMpService, Requ
/**
* 向微信端发送请求在这里执行的策略是当发生access_token过期时才去刷新然后重新执行请求而不是全局定时请求
*/
@Override
public <T, E> T execute(RequestExecutor<T, E> executor, String uri, E data) throws WxErrorException {
int retryTimes = 0;
do {