|
|
@@ -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) |
|
|
|