From 563d46637404c8ca8d1756da4ee9777a04804517 Mon Sep 17 00:00:00 2001 From: Gordon <1432970085@qq.com> Date: Fri, 11 Feb 2022 17:51:36 +0800 Subject: [PATCH] demo modify --- config/config.yaml | 2 +- pkg/common/config/config.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/config.yaml b/config/config.yaml index 9a8109a34..ee8ec13c4 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -434,7 +434,7 @@ demo: verificationCodeTemplateCode: SMS_2268101641 superCode: 666666 # second - superCodeTTL: 60 + codeTTL: 60 mail: title: "openIM" senderMail: "1765567899@qq.com" diff --git a/pkg/common/config/config.go b/pkg/common/config/config.go index f3a4611d5..b2079acf3 100644 --- a/pkg/common/config/config.go +++ b/pkg/common/config/config.go @@ -284,9 +284,9 @@ type config struct { SignName string `yaml:"signName"` VerificationCodeTemplateCode string `yaml:"verificationCodeTemplateCode"` } - SuperCode string `yaml:"superCode"` - SuperCodeTTL int `yaml:"superCodeTTL"` - Mail struct { + SuperCode string `yaml:"superCode"` + CodeTTL int `yaml:"codeTTL"` + Mail struct { Title string `yaml:"title"` SenderMail string `yaml:"senderMail"` SenderAuthorizationCode string `yaml:"senderAuthorizationCode"`