Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cnooc_zydeepen-cggl_expert-manage-miniapp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙德龙
cnooc_zydeepen-cggl_expert-manage-miniapp
Commits
30b91a59
Commit
30b91a59
authored
Nov 15, 2025
by
刘红梅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mock 假数据
parent
1c9c6be7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/main/java/com/cnooc/expert/auth/service/impl/SmsServiceImpl.java
+2
-2
No files found.
src/main/java/com/cnooc/expert/auth/service/impl/SmsServiceImpl.java
View file @
30b91a59
...
...
@@ -41,7 +41,7 @@ public class SmsServiceImpl implements SmsService {
// smsCodeRedisCache.delete(key);
return
true
;
}
return
fals
e
;
return
tru
e
;
}
/**
...
...
@@ -55,7 +55,7 @@ public class SmsServiceImpl implements SmsService {
//String code = RandomUtil.randomNumbers(6);
String
code
=
"666666"
;
String
key
=
"sms:code:"
+
phone
;
//
redisTemplate.opsForValue().set(key, code, 60 * 60 * 1L);// 存入 Redis,设置过期时间为5分钟
redisTemplate
.
opsForValue
().
set
(
key
,
code
,
60
*
60
*
1L
);
// 存入 Redis,设置过期时间为5分钟
System
.
out
.
println
(
"发送短信验证码:"
+
phone
+
" -> "
+
code
);
// 模拟发送短信,实际应调用第三方短信服务
return
true
;
//return sendMasSmsCode(phone);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment