fix: 查询SQLmap属性值转换空字符
This commit is contained in:
1 parent
516ac68ff9
commit
ae9fe08a1f
17 files changed
+28
-95
No files matched your search
@@ -356,11 +356,7 @@ func (r *RepoSysRole) CheckUniqueRole(sysRole model.SysRole) string {
|
||||
return ""
|
||||
}
|
||||
if len(results) > 0 {
|
||||
v, ok := results[0]["str"].(string)
|
||||
if ok {
|
||||
return v
|
||||
}
|
||||
return ""
|
||||
return fmt.Sprint(results[0]["str"])
|
||||
}
|
||||
return ""
|
||||
}
|
||||
Reference in new issue
Block a user