diff --git a/.idea/.cache/.Apifox_Helper/.toolWindow.db b/.idea/.cache/.Apifox_Helper/.toolWindow.db index baa6f5d..91ec3ab 100644 Binary files a/.idea/.cache/.Apifox_Helper/.toolWindow.db and b/.idea/.cache/.Apifox_Helper/.toolWindow.db differ diff --git a/src/main/java/vvpkassistant/OTP/service/OTPService.java b/src/main/java/vvpkassistant/OTP/service/OTPService.java index 6334270..b6a9c9e 100644 --- a/src/main/java/vvpkassistant/OTP/service/OTPService.java +++ b/src/main/java/vvpkassistant/OTP/service/OTPService.java @@ -7,5 +7,5 @@ import vvpkassistant.OTP.model.OTPDTO; * @date: 2025/8/14 20:51 */ public interface OTPService { - Object getOPT(); + Object getOTP(); } diff --git a/src/main/java/vvpkassistant/OTP/service/OTPServiceImpl.java b/src/main/java/vvpkassistant/OTP/service/OTPServiceImpl.java index 1658054..d57f3d6 100644 --- a/src/main/java/vvpkassistant/OTP/service/OTPServiceImpl.java +++ b/src/main/java/vvpkassistant/OTP/service/OTPServiceImpl.java @@ -23,7 +23,7 @@ public class OTPServiceImpl implements OTPService { private String IM_SecretKey; @Override - public Object getOPT() { + public Object getOTP() { try { String otp = "000" + System.currentTimeMillis(); SecretKeySpec key = new SecretKeySpec(IM_SecretKey.getBytes(), "AES"); diff --git a/src/main/java/vvpkassistant/controller/OTPController.java b/src/main/java/vvpkassistant/controller/OTPController.java index 420db26..2722783 100644 --- a/src/main/java/vvpkassistant/controller/OTPController.java +++ b/src/main/java/vvpkassistant/controller/OTPController.java @@ -19,8 +19,8 @@ public class OTPController { @Resource private OTPService otpService; - @GetMapping("/getopt") + @GetMapping("/getotp") public ResponseData getOTP() { - return ResponseData.success(otpService.getOPT()); + return ResponseData.success(otpService.getOTP()); } } diff --git a/target/classes/application.yml b/target/classes/application.yml index b1de7a4..bf19aed 100644 --- a/target/classes/application.yml +++ b/target/classes/application.yml @@ -60,3 +60,4 @@ dromara: domain: https://vv-1317974657.cos.ap-shanghai.myqcloud.com # 访问域名,注意“/”结尾,例如:https://abc.cos.ap-nanjing.myqcloud.com/ base-path: /headerIcon/ # 基础路径 +IM-secretKey: 04452c3231ae4fe5 \ No newline at end of file