|
|
|
@ -90,7 +90,7 @@ public class LocalServerLoginAccountsInterceptor extends HandlerInterceptorAdapt
|
|
|
|
|
} |
|
|
|
|
// 验证签名
|
|
|
|
|
String auth = suoFeiYaProperties.getAuth(); |
|
|
|
|
String md5Hex = new String(MD5.create().digest(authTime + auth)).toUpperCase(); |
|
|
|
|
String md5Hex = MD5.create().digestHex(authTime + auth).toUpperCase(); |
|
|
|
|
log.info("##########preHandle: md5Hex={}", md5Hex); |
|
|
|
|
if (!StrUtil.equals(md5Hex, sign)) { |
|
|
|
|
returnJson(response, JSONObject.toJSONString(R.fail(1, "认证不通过,签名不正确"))); |
|
|
|
|