From f3f7088545c2be0b6da1b4e5e1d8461fa57a63fc Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期二, 08 九月 2020 15:03:56 +0800
Subject: [PATCH] fix url and fix testNightPush
---
models/userCar.go | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/models/userCar.go b/models/userCar.go
index 159e9de..2b70962 100644
--- a/models/userCar.go
+++ b/models/userCar.go
@@ -41,8 +41,7 @@
func (uc *UserCar) Delete(userId string, plateNo string) (int64, error) {
o := orm.NewOrm()
- sql := fmt.Sprintf("delete from "+uc.TableName()+" where userId=%s and plateNo=%s", userId, plateNo)
- fmt.Println("sql:", sql)
+ sql := fmt.Sprintf("delete from "+uc.TableName()+" where userId='%s' and plateNo='%s'", userId, plateNo)
result, err := o.Raw(sql).Exec()
if err != nil {
return 0, err
--
Gitblit v1.8.0