feat:完善信息
This commit is contained in:
@ -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 图形
|
||||
|
Reference in New Issue
Block a user