Fix the upload alien issue.

This commit is contained in:
zicla
2019-04-02 02:49:31 +08:00
parent 2fb512a176
commit a8cc42b915
7 changed files with 37 additions and 48 deletions

View File

@ -161,15 +161,15 @@ func (this *MatterDao) Page(page int, pageSize int, puuid string, userUuid strin
wp = wp.And(&WherePair{Query: "name LIKE ?", Args: []interface{}{"%" + name + "%"}})
}
if dir == "true" {
if dir == TRUE {
wp = wp.And(&WherePair{Query: "dir = ?", Args: []interface{}{1}})
} else if dir == "false" {
} else if dir == FALSE {
wp = wp.And(&WherePair{Query: "dir = ?", Args: []interface{}{0}})
}
if alien == "true" {
if alien == TRUE {
wp = wp.And(&WherePair{Query: "alien = ?", Args: []interface{}{1}})
} else if alien == "false" {
} else if alien == FALSE {
wp = wp.And(&WherePair{Query: "alien = ?", Args: []interface{}{0}})
}