完善环境变量与初始化数据

This commit is contained in:
2026-04-13 11:00:46 +08:00
parent cfbe751af7
commit 46d326638b
5 changed files with 128 additions and 62 deletions

View File

@@ -55,7 +55,7 @@ func (s *verifierService) SendSms(ctx context.Context, phone string, purpose Ver
code := rand.Intn(900000) + 100000 // 6-digit code between 100000-999999
// 发送短信验证码
if env.DebugExternalChange {
if env.RunMode == env.RunModeProd {
params, err := json.Marshal(map[string]string{
"code": strconv.Itoa(code),
})