Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
邬吉朋
ops
Commits
1cdae0c3
Commit
1cdae0c3
authored
Aug 11, 2025
by
zhuxiang
Browse files
Merge remote-tracking branch 'origin/sxx' into sxx
parents
580a8793
f9424aaf
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/ruzhoukj/sms/task/InTheEarlyTask.java
View file @
1cdae0c3
...
...
@@ -67,7 +67,7 @@ public class InTheEarlyTask {
ScheduleEntity
scheduleEntity
=
scheduleService
.
getUser
(
dates
[
0
],
dates
[
1
]);
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"name"
,
scheduleEntity
.
getName
());
SmsUtil
.
sendMsg
(
scheduleEntity
.
getPhone
(),
"SMS_49
0030330
"
,
map
);
SmsUtil
.
sendMsg
(
scheduleEntity
.
getPhone
(),
"SMS_49
1150329
"
,
map
);
//保存短信发送历史记录
smsInformService
.
save
(
SmsInformEntity
.
builder
()
.
name
(
scheduleEntity
.
getName
())
...
...
src/main/java/com/ruzhoukj/sms/task/OpsTask.java
View file @
1cdae0c3
...
...
@@ -41,8 +41,8 @@ public class OpsTask {
private
EmailRecordService
emailRecordService
;
//每个月一号执行一次,本月要到期的证书
//
@Scheduled(cron = "0 0 10 1 * ?")
@Scheduled
(
cron
=
"0/10 * * * * ?"
)
@Scheduled
(
cron
=
"0 0 10 1 * ?"
)
//
@Scheduled(cron = "0/10 * * * * ?")
@Transactional
public
void
slow
()
{
//查询有没有本月要到期的ssl证书
...
...
src/main/java/com/ruzhoukj/sms/util/SmsUtil.java
View file @
1cdae0c3
...
...
@@ -19,9 +19,9 @@ public class SmsUtil {
DefaultProfile
profile
=
DefaultProfile
.
getProfile
(
"cn-hangzhou"
,
//accessKeyId
"LTAI5t
KxtLWiJ2M5ffb2aMQu
"
,
"LTAI5t
CAKQWmKVuJZeHCt8gA
"
,
//accessSecret
"
N86GOBwrnsmmRkjJsxZTtXsfZOsNBv
"
);
"
c3fbBO2cXozBtENz9hjFThdvLamfq9
"
);
IAcsClient
client
=
new
DefaultAcsClient
(
profile
);
CommonRequest
request
=
new
CommonRequest
();
request
.
setMethod
(
MethodType
.
POST
);
...
...
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