From 72cc3162210fdac4a20da9dab4b4b62a0e3f2212 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 31 Jul 2024 10:44:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9E=AC=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fast_login/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)