|
@@ -45,6 +45,9 @@ public class SignVerifyAspect {
|
|
|
String sign = request.getHeader(verifySign.signParam().toLowerCase());
|
|
|
String appId = request.getHeader(verifySign.appId().toLowerCase());
|
|
|
|
|
|
+ if(StringUtils.isBlank(sign) || StringUtils.isBlank(appId)){
|
|
|
+ throw new BusinessException(ResultCode.SIGN_ERROR);
|
|
|
+ }
|
|
|
AppSecret byAppId = null;
|
|
|
if(redisUtil.hasKey("ucenter:sign:appid:"+appId)){
|
|
|
byAppId = JSONObject.parseObject(redisUtil.get("ucenter:sign:appid:"+appId),AppSecret.class);
|