sql错误
This commit is contained in:
parent
a3e32c3755
commit
7e1d876604
|
|
@ -35,9 +35,9 @@ func FindShellByID(id, uid uint) []Shell {
|
||||||
var result *gorm.DB
|
var result *gorm.DB
|
||||||
|
|
||||||
if proto.Config.SERVER_SQL_LOG {
|
if proto.Config.SERVER_SQL_LOG {
|
||||||
result = DB.Debug().Where("id = ? & auth_id = ?", id, uid).First(&shell)
|
result = DB.Debug().Where("id = ? and auth_id = ?", id, uid).First(&shell)
|
||||||
} else {
|
} else {
|
||||||
result = DB.Where("id = ? & auth_id = ?", id, uid).First(&shell)
|
result = DB.Where("id = ? and auth_id = ?", id, uid).First(&shell)
|
||||||
}
|
}
|
||||||
var res []Shell
|
var res []Shell
|
||||||
res = append(res, shell)
|
res = append(res, shell)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue