增加友店权限失效异常500

This commit is contained in:
egzosn@gmail.com
2017-06-26 13:47:33 +08:00
parent 358e6e935b
commit e1ea6cab92

View File

@@ -214,7 +214,7 @@ public class WxYouDianPayService extends BasePayService {
return result;
}catch (PayErrorException e){
PayError error = e.getPayError();
if ("401".equals(error.getErrorCode()) ) {
if ("401".equals(error.getErrorCode()) || "500".equals(error.getErrorCode())) {
// 强制设置wxMpConfigStorage它的access token过期了这样在下一次请求里就会刷新access token
payConfigStorage.expireAccessToken();
//进行重新登陆授权