mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-19 02:21:38 +08:00
This commit is contained in:
parent
fc5f24658d
commit
07ec318356
@ -656,16 +656,11 @@ func getBazaarIndex() map[string]*bazaarPackage {
|
||||
const defaultMinAppVersion = "2.9.0"
|
||||
|
||||
func disallowDisplayBazaarPackage(pkg *Package) bool {
|
||||
if "" == pkg.MinAppVersion { // 目前暂时放过所有不带 minAppVersion 的集市包,后续版本会使用 defaultMinAppVersion
|
||||
if "" == pkg.MinAppVersion { // TODO: 目前暂时放过所有不带 minAppVersion 的集市包,后续版本会使用 defaultMinAppVersion
|
||||
return false
|
||||
}
|
||||
if 0 < semver.Compare("v"+pkg.MinAppVersion, "v"+util.Ver) {
|
||||
return true
|
||||
}
|
||||
|
||||
if 0 < len(pkg.Backends) {
|
||||
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
@ -350,6 +350,10 @@ func matchPackage(keywords []string, pkg *bazaar.Package) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
if nil == pkg {
|
||||
return false
|
||||
}
|
||||
|
||||
for _, keyword := range keywords {
|
||||
if strings.Contains(strings.ToLower(pkg.DisplayName.Default), keyword) ||
|
||||
strings.Contains(strings.ToLower(pkg.DisplayName.ZhCN), keyword) ||
|
||||
|
Loading…
Reference in New Issue
Block a user