Browse Source

瞬验

master
huangjiajun 5 months ago
parent
commit
72cc316221
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      fast_login/api.go

+ 2
- 2
fast_login/api.go View File

@@ -49,8 +49,8 @@ func FastLoginSend(engine *xorm.Engine, args map[string]interface{}) error {
Phone: args["mobile"].(string),
}
engine.InsertOne(&record)
sql := `UPDATE fast_login_num_list set num=num-%d WHERE uid=%s and type='%s';`
sql = fmt.Sprintf(sql, 1, args["uid"], args["sms_type"])
sql := `UPDATE fast_login_num_list set num=num-%d WHERE uid=%s ;`
sql = fmt.Sprintf(sql, 1, args["uid"])
fmt.Println(sql)
nativeString, err := db.QueryNativeString(engine, sql)
fmt.Println(nativeString)


Loading…
Cancel
Save