fix: 修复社区帖子空数组处理
This commit is contained in:
@@ -10,7 +10,7 @@ import (
|
||||
|
||||
func toTextArray(s []string) types.TextArray {
|
||||
if len(s) == 0 {
|
||||
return types.TextArray{Valid: true}
|
||||
return types.TextArray{Elements: []string{}, Valid: true}
|
||||
}
|
||||
return types.TextArray{
|
||||
Elements: s,
|
||||
|
||||
Reference in New Issue
Block a user