mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-07-04 09:57:43 +08:00
消息阅后即焚
This commit is contained in:
parent
d992d1fb41
commit
1af699e77c
@ -798,11 +798,11 @@ func FillCronTaskDefaults(ct *CronTask) {
|
||||
if strings.TrimSpace(ct.BurnCronExecuteTime) == "" {
|
||||
ct.BurnCronExecuteTime = "*/1 * * * *"
|
||||
}
|
||||
if strings.TrimSpace(ct.BurnClearLimit) == "" {
|
||||
if ct.BurnClearLimit <= 0 {
|
||||
ct.BurnClearLimit = 100
|
||||
}
|
||||
if strings.TrimSpace(ct.BurnClearMaxLoop) == "" {
|
||||
ct.BurnClearMaxLoop = 10000
|
||||
if ct.BurnClearMaxLoop <= 0 {
|
||||
ct.BurnClearMaxLoop = 100
|
||||
}
|
||||
if ct.ChatAPI.Address == "" {
|
||||
ct.ChatAPI.Address = "http://127.0.0.1:10008"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user