fix: 查询SQLmap属性值转换空字符

This commit is contained in:
TsMask
2024-02-29 21:00:28 +08:00
parent 516ac68ff9
commit ae9fe08a1f
17 changed files with 28 additions and 95 deletions

View File

@@ -1,6 +1,7 @@
package repository
import (
"fmt"
"strings"
"time"
@@ -231,11 +232,7 @@ func (r *NeHostImpl) CheckUniqueNeHost(neHost model.NeHost) string {
return ""
}
if len(results) > 0 {
v, ok := results[0]["str"].(string)
if ok {
return v
}
return ""
return fmt.Sprint(results[0]["str"])
}
return ""
}

View File

@@ -1,6 +1,7 @@
package repository
import (
"fmt"
"strings"
"time"
@@ -199,11 +200,7 @@ func (r *NeHostCmd) CheckUniqueGroupTitle(neHostCmd model.NeHostCmd) string {
return ""
}
if len(results) > 0 {
v, ok := results[0]["str"].(string)
if ok {
return v
}
return ""
return fmt.Sprint(results[0]["str"])
}
return ""
}