From a3d169d2f0189130e591acfd6fb18b624327357c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Fri, 16 Oct 2020 17:57:14 +0800 Subject: [PATCH] yzm --- business/auth2/authprovider/mobile/mobile.go | 1 + 1 file changed, 1 insertion(+) diff --git a/business/auth2/authprovider/mobile/mobile.go b/business/auth2/authprovider/mobile/mobile.go index 32aa3d974..c4a657c8f 100644 --- a/business/auth2/authprovider/mobile/mobile.go +++ b/business/auth2/authprovider/mobile/mobile.go @@ -46,6 +46,7 @@ func init() { // 特殊接口 func (a *Auther) SendVerifyCode(mobileNumber string) (verifyCode string, err error) { verifyCode = fmt.Sprintf("%06d", rand.Intn(1000000)) + globals.SugarLogger.Debugf("SendVerifyCode code: %v", verifyCode) // a.GenerateVerifyCode(mobileNumber) smsClient := aliyunsmsclient.New("http://dysmsapi.aliyuncs.com/") response, err := smsClient.Execute(globals.AliKey, globals.AliSecret, mobileNumber, globals.SMSSignName, globals.SMSMobileVerifyTemplate, string(utils.MustMarshal(map[string]interface{}{