aa
This commit is contained in:
@@ -23,9 +23,9 @@ func AddApp(c *gin.Context, code, name, mobile, userID string) (err error) {
|
||||
db = globals.GetDB()
|
||||
now = time.Now()
|
||||
)
|
||||
if rcode, ok := putils.GetKet(mobile).(string); !ok {
|
||||
if rcode := putils.GetKey(mobile); rcode == "" {
|
||||
putils.DelKey(mobile)
|
||||
return err
|
||||
return fmt.Errorf("验证码错误!")
|
||||
} else if code != rcode {
|
||||
putils.DelKey(mobile)
|
||||
return fmt.Errorf("验证码错误!")
|
||||
|
||||
Reference in New Issue
Block a user