Merge branch 'refs/heads/feat-cmd' into release

This commit is contained in:
junleea 2025-03-05 19:15:55 +08:00
commit ecb5656a92
1 changed files with 2 additions and 2 deletions

View File

@ -35,9 +35,9 @@ func FindShellByID(id, uid uint) []Shell {
var result *gorm.DB
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 {
result = DB.Where("id = ? & auth_id = ?", id, uid).First(&shell)
result = DB.Where("id = ? and auth_id = ?", id, uid).First(&shell)
}
var res []Shell
res = append(res, shell)