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{}{