🎨 Add marketplace package config item minAppVersion
https://github.com/siyuan-note/siyuan/issues/8330
This commit is contained in:
parent
8cbe54c2ab
commit
d40291fcb8
1 changed files with 1 additions and 1 deletions
|
@ -656,7 +656,7 @@ func getBazaarIndex() map[string]*bazaarPackage {
|
|||
const defaultMinAppVersion = "2.9.0"
|
||||
|
||||
func disallowDisplayBazaarPackage(minAppVersion string) bool {
|
||||
if "" == minAppVersion {
|
||||
if "" == minAppVersion { // 目前暂时放过所有不带 minAppVersion 的集市包,后续版本会使用 defaultMinAppVersion
|
||||
return false
|
||||
}
|
||||
return 0 > semver.Compare("v"+minAppVersion, "v"+util.Ver)
|
||||
|
|
Loading…
Add table
Reference in a new issue