Skip to content

Commit 943e953

Browse files
committed
fix: bug
1 parent acfb434 commit 943e953

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sms.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func ProcessSMS(smsList []map[string]interface{}, cache *Cache) {
102102
if time.Now().Unix()-int64(timestamp) < int64(Yaml.Sms.CacheTTL.Seconds()) {
103103
phone := sms["phone"].(string)
104104
content := sms["content"].(string)
105-
datetime := time.Unix(int64(timestamp), 0).Format("2025-01-01 15:04:05") // 时间戳转换为格式化时间
105+
datetime := time.Unix(int64(timestamp), 0).Format("2006-01-02 15:04:05") // 时间戳转换为格式化时间
106106
text := fmt.Sprintf("%s\n%s\n\n%s\nR106", phone, content, datetime)
107107

108108
// 生成缓存的 MD5 键

0 commit comments

Comments
 (0)