feat:完善信息

This commit is contained in:
henry
2021-09-29 16:43:40 +08:00
parent c556053feb
commit 3d84af2e0c
6 changed files with 68 additions and 4 deletions

View File

@ -28,7 +28,7 @@ type (
}
)
type SmsCallback func(content string) error
type SmsCallback func(mobile, code string) error
const (
// SmsCaptchaEffectiveTime 短信验证码有效时间
@ -61,7 +61,7 @@ func (this *Captcha) Sms(length int, mobile string, callback SmsCallback) error
}
// 发送短信
//NewSms().Handle(mobile)
return callback(mobile)
return callback(mobile, code)
}
// Image 图形