完善环境变量与初始化数据
This commit is contained in:
@@ -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),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user