|
@@ -31,7 +31,7 @@ import java.util.concurrent.ConcurrentHashMap;
|
|
@Slf4j
|
|
@Slf4j
|
|
public class SignAuthInterceptor implements HandlerInterceptor {
|
|
public class SignAuthInterceptor implements HandlerInterceptor {
|
|
|
|
|
|
- private static final String NONCE_KEY_STR = "nonce-";
|
|
|
|
|
|
+ private static final String NONCE_KEY_STR = "nonce:";
|
|
|
|
|
|
private static final String OpenInterfaceKey = "open-interface-";
|
|
private static final String OpenInterfaceKey = "open-interface-";
|
|
|
|
|
|
@@ -129,7 +129,9 @@ public class SignAuthInterceptor implements HandlerInterceptor {
|
|
openInterface = mapper.readValue(openInterfaceStr,BizOpenInterface.class);
|
|
openInterface = mapper.readValue(openInterfaceStr,BizOpenInterface.class);
|
|
}else{
|
|
}else{
|
|
openInterface = bizOpenInterfaceService.getOne(new QueryWrapper<BizOpenInterface>().eq("app_key",appKey));
|
|
openInterface = bizOpenInterfaceService.getOne(new QueryWrapper<BizOpenInterface>().eq("app_key",appKey));
|
|
- commonCacheOperator.put(OpenInterfaceKey + appKey,JSON.toJSONString(openInterface));
|
|
|
|
|
|
+ if (ObjectUtil.isNotEmpty(openInterface)) {
|
|
|
|
+ commonCacheOperator.put(OpenInterfaceKey + appKey, JSON.toJSONString(openInterface));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (openInterface == null || !openInterface.getStatus().equals("ENABLE")) {
|
|
if (openInterface == null || !openInterface.getStatus().equals("ENABLE")) {
|
|
log.info("appKey无法查询到合作项目信息或已被封禁...........");
|
|
log.info("appKey无法查询到合作项目信息或已被封禁...........");
|