1.修改OTP控制器接口地址
This commit is contained in:
BIN
.idea/.cache/.Apifox_Helper/.toolWindow.db
generated
BIN
.idea/.cache/.Apifox_Helper/.toolWindow.db
generated
Binary file not shown.
@@ -7,5 +7,5 @@ import vvpkassistant.OTP.model.OTPDTO;
|
|||||||
* @date: 2025/8/14 20:51
|
* @date: 2025/8/14 20:51
|
||||||
*/
|
*/
|
||||||
public interface OTPService {
|
public interface OTPService {
|
||||||
Object getOPT();
|
Object getOTP();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ public class OTPServiceImpl implements OTPService {
|
|||||||
private String IM_SecretKey;
|
private String IM_SecretKey;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Object getOPT() {
|
public Object getOTP() {
|
||||||
try {
|
try {
|
||||||
String otp = "000" + System.currentTimeMillis();
|
String otp = "000" + System.currentTimeMillis();
|
||||||
SecretKeySpec key = new SecretKeySpec(IM_SecretKey.getBytes(), "AES");
|
SecretKeySpec key = new SecretKeySpec(IM_SecretKey.getBytes(), "AES");
|
||||||
|
|||||||
@@ -19,8 +19,8 @@ public class OTPController {
|
|||||||
@Resource
|
@Resource
|
||||||
private OTPService otpService;
|
private OTPService otpService;
|
||||||
|
|
||||||
@GetMapping("/getopt")
|
@GetMapping("/getotp")
|
||||||
public ResponseData<Object> getOTP() {
|
public ResponseData<Object> getOTP() {
|
||||||
return ResponseData.success(otpService.getOPT());
|
return ResponseData.success(otpService.getOTP());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,3 +60,4 @@ dromara:
|
|||||||
domain: https://vv-1317974657.cos.ap-shanghai.myqcloud.com # 访问域名,注意“/”结尾,例如:https://abc.cos.ap-nanjing.myqcloud.com/
|
domain: https://vv-1317974657.cos.ap-shanghai.myqcloud.com # 访问域名,注意“/”结尾,例如:https://abc.cos.ap-nanjing.myqcloud.com/
|
||||||
base-path: /headerIcon/ # 基础路径
|
base-path: /headerIcon/ # 基础路径
|
||||||
|
|
||||||
|
IM-secretKey: 04452c3231ae4fe5
|
||||||
Reference in New Issue
Block a user