aa
This commit is contained in:
@@ -23,14 +23,14 @@ func AddApp(c *gin.Context, code, name, mobile, userID string) (err error) {
|
||||
db = globals.GetDB()
|
||||
now = time.Now()
|
||||
)
|
||||
if rcode := putils.GetKey(mobile); rcode == "" {
|
||||
putils.DelKey(mobile)
|
||||
return fmt.Errorf("验证码错误!")
|
||||
} else if code != rcode {
|
||||
putils.DelKey(mobile)
|
||||
return fmt.Errorf("验证码错误!")
|
||||
}
|
||||
putils.DelKey(mobile)
|
||||
//if rcode := putils.GetKey(mobile); rcode == "" {
|
||||
// putils.DelKey(mobile)
|
||||
// return fmt.Errorf("验证码错误!")
|
||||
//} else if code != rcode {
|
||||
// putils.DelKey(mobile)
|
||||
// return fmt.Errorf("验证码错误!")
|
||||
//}
|
||||
//putils.DelKey(mobile)
|
||||
|
||||
if apps, _ := dao.GetApps(db, 0, userID, ""); len(apps) > 2 {
|
||||
return fmt.Errorf("同一个账号最多只能建3个app!")
|
||||
|
||||
Reference in New Issue
Block a user