添加景区账号的登陆功能

添加“上传人脸、现场支付、事后支付、退款、点击购买”操作的数据记录
This commit is contained in:
longbinbin
2024-12-13 11:25:02 +08:00
parent 715c351f5f
commit 6fca6df89f
29 changed files with 344 additions and 45 deletions

View File

@ -485,14 +485,27 @@ public class DateUtils {
calendar.add(Calendar.DAY_OF_YEAR, i);
return calendar.getTime();
}
/**
* 在指定日期上增加i分钟,负数为减少i分钟
* @param date
* @param i
* @return
*/
public static Date addDateMinute(Date date, int i) {
Calendar calendar = Calendar.getInstance();
calendar.setTime(date);
calendar.add(Calendar.MINUTE, i);
return calendar.getTime();
}
public static void main(String[] args) {
Date date = new Date();
Date yesterday = DateUtils.addDateDays(date, -1);
Date startDate = DateUtils.getStartOfDay(yesterday);
Date endDate = DateUtils.getEndOfDay(yesterday);
System.out.println(format(startDate, "yyyy-MM-dd HH:mm:ss"));
System.out.println(format(endDate, "yyyy-MM-dd HH:mm:ss"));
Date yesterday = DateUtils.addDateMinute(date, 10);
System.out.println(format(yesterday, "yyyy-MM-dd HH:mm:ss"));
// Date startDate = DateUtils.getStartOfDay(yesterday);
// Date endDate = DateUtils.getEndOfDay(yesterday);
// System.out.println(format(startDate, "yyyy-MM-dd HH:mm:ss"));
// System.out.println(format(endDate, "yyyy-MM-dd HH:mm:ss"));
}
}

View File

@ -58,6 +58,7 @@ public class JwtAnalysisUtil {
&& !"account".equals(entry.getKey())
&& !"name".equals(entry.getKey())
&& !"roleName".equals(entry.getKey())
&& !"scenicId".equals(entry.getKey())
&& !"expire".equals(entry.getKey()));
}
@ -82,6 +83,7 @@ public class JwtAnalysisUtil {
StringUtil.a(body.get("roleId")),
body.getSubject(),
StringUtil.a(body.get("phone")),
body.get("scenicId") == null ? null : Long.valueOf(body.get("scenicId").toString()),
expireTime);
}
}