diff --git a/fast_login/api.go b/fast_login/api.go index ee90d52..3ce7fc9 100644 --- a/fast_login/api.go +++ b/fast_login/api.go @@ -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)