Commit 024b4d10 authored by yaobaizheng's avatar yaobaizheng

加密去掉时间校验

parent 428b9254
......@@ -58,10 +58,10 @@ public class Signterceptor implements AsyncHandlerInterceptor {
Object time = map.get("time");
DateTime sendTime = DateUtil.date(Long.parseLong(time.toString()));
long between = DateUtil.between(sendTime, DateUtil.date(), DateUnit.SECOND);
if (between > 10) {
log.error("签名时间超时,请重试:{}", between);
throw new ServiceException("签名时间超时,请重试");
}
// if (between > 10) {
// log.error("签名时间超时,请重试:{}", between);
// throw new ServiceException("签名时间超时,请重试");
// }
log.info("签名通过");
} catch (Exception e) {
log.error("签名有误,请重试:{},异常信息:{}", sign,e);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment