From 501759fa68e7904f1c8daa09d3983472fbaf65b3 Mon Sep 17 00:00:00 2001 From: sxu <602087911@qq.com> Date: Sat, 15 Mar 2025 16:28:14 +0800 Subject: [PATCH 1/2] get token --- .../customer/service/impl/CustInfoServiceImpl.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/customer/service/impl/CustInfoServiceImpl.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/customer/service/impl/CustInfoServiceImpl.java index e631f7f1..7f3bf80a 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/customer/service/impl/CustInfoServiceImpl.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/customer/service/impl/CustInfoServiceImpl.java @@ -230,11 +230,11 @@ public class CustInfoServiceImpl extends ServiceImpl i return ajaxResult; } - public static void main(String[] args) { - BCryptPasswordEncoder bCrypt = new BCryptPasswordEncoder(); - boolean flag = bCrypt.matches("Bonus$2026", "$2a$10$vrcmG0TyvgH5tS9g8ptaVOK2K3pYWVAa13SWEK7pQBGRtNAPlGV7O"); - System.out.println(flag); - } +// public static void main(String[] args) { +// BCryptPasswordEncoder bCrypt = new BCryptPasswordEncoder(); +// boolean flag = bCrypt.matches("Bonus$2026", "$2a$10$vrcmG0TyvgH5tS9g8ptaVOK2K3pYWVAa13SWEK7pQBGRtNAPlGV7O"); +// System.out.println(flag); +// } @Override public AjaxResult custForgetPassword(CustForgetPasswordDTO content) { From d099199a8eac72fa6b1f5a658d70f63076b77524 Mon Sep 17 00:00:00 2001 From: sxu <602087911@qq.com> Date: Sat, 15 Mar 2025 16:53:35 +0800 Subject: [PATCH 2/2] get token --- .../core/customer/service/impl/CustInfoServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/customer/service/impl/CustInfoServiceImpl.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/customer/service/impl/CustInfoServiceImpl.java index 7f3bf80a..5036f75e 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/customer/service/impl/CustInfoServiceImpl.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/customer/service/impl/CustInfoServiceImpl.java @@ -310,8 +310,8 @@ public class CustInfoServiceImpl extends ServiceImpl i @Override public String getOrderQRCode(Integer sourceType, String paramValue) { - String stime = String.valueOf(System.currentTimeMillis() / 1000L); - return "xnzn{\"s\":" + sourceType + ",\"y\":" + LeCodeUseSceneEnum.PAY.key() + ",\"p\":\"" + paramValue + "\",\"t\":" + stime + "}"; + String stime = String.valueOf(System.currentTimeMillis()); + return "xnzn{\"s\":" + sourceType + ",\"y\":" + LeCodeUseSceneEnum.PAY.key() + ",\"p\":\"" + paramValue + "\",\"t\":" + "\"" + stime + "\"}"; } public static void assembleErrInfo(List custErrorToLeadList, CustAccExcelModel temp, String msg) {