|
@@ -78,7 +78,7 @@ public class AppletCheckServiceImpl implements IAppletCheckService {
|
|
|
} catch (Exception e) {
|
|
|
log.error("获取小程序token异常, appName : {}, e : {}", payApplication.getAppName(), e.getMessage());
|
|
|
}
|
|
|
- if (Strings.isBlank(accessToken) || !this.appletCheck(accessToken)) {
|
|
|
+ if (Strings.isBlank(accessToken) || !this.appletCheck(accessToken, payApplication.getAppName())) {
|
|
|
log.error("小程序判定封停或者禁用, appName : {}, accessToken : {}", payApplication.getAppName(), accessToken);
|
|
|
this.payApplicationCheck(payApplication);
|
|
|
}
|
|
@@ -193,7 +193,7 @@ public class AppletCheckServiceImpl implements IAppletCheckService {
|
|
|
return new ArrayList<>(collection);
|
|
|
}
|
|
|
|
|
|
- private boolean appletCheck(String token) {
|
|
|
+ private boolean appletCheck(String token, String appName) {
|
|
|
//参数对象
|
|
|
String dayTime = LocalDate.now().minusDays(1).toString();
|
|
|
Map<String, String> paramMap = new HashMap<>(2);
|
|
@@ -203,12 +203,12 @@ public class AppletCheckServiceImpl implements IAppletCheckService {
|
|
|
try {
|
|
|
// 带参POST请求
|
|
|
String result = HttpUtil.post(host, JsonUtil.toString(paramMap));
|
|
|
- log.error("小程序接口监测结果, result : {}", result);
|
|
|
if (Strings.isNotBlank(result) && result.contains("errcode")) {
|
|
|
+ log.error("小程序封停监测结果, appName : {}, result : {}", appName, result);
|
|
|
return Boolean.FALSE;
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
- log.error("小程序token检测出现异常, token : {}, e : {}", token, e.getMessage());
|
|
|
+ log.error("小程序封停监测异常, appName : {}, e : {}", appName, e.getMessage());
|
|
|
return Boolean.FALSE;
|
|
|
}
|
|
|
return Boolean.TRUE;
|