Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
22a3804d88
2 changed files with 10 additions and 0 deletions
|
@ -54,6 +54,12 @@ func fullTextSearchAssetContent(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
if !model.IsPaidUser() {
|
||||
ret.Code = -1
|
||||
ret.Msg = model.Conf.Language(214)
|
||||
return
|
||||
}
|
||||
|
||||
page, pageSize, query, types, method, orderBy := parseSearchAssetContentArgs(arg)
|
||||
assetContents, matchedAssetCount, pageCount := model.FullTextSearchAssetContent(query, types, method, orderBy, page, pageSize)
|
||||
ret.Data = map[string]interface{}{
|
||||
|
|
|
@ -223,6 +223,10 @@ func GetBlockAttributeViewKeys(blockID string) (ret []*BlockAttributeViewKeys) {
|
|||
|
||||
if 0 < len(kValues.Values) {
|
||||
keyValues = append(keyValues, kValues)
|
||||
} else {
|
||||
// 如果没有值,那么就补一个默认值
|
||||
kValues.Values = append(kValues.Values, treenode.GetAttributeViewDefaultValue(ast.NewNodeID(), kv.Key.ID, blockID, kv.Key.Type))
|
||||
keyValues = append(keyValues, kValues)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue