mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 操作系统平台版本信息
This commit is contained in:
parent
5caf532fd6
commit
7b87dcf0f6
4 changed files with 7 additions and 11 deletions
|
|
@ -23,11 +23,11 @@ import (
|
|||
"github.com/siyuan-note/logging"
|
||||
)
|
||||
|
||||
func GetOSPlatform() (plat, ver string) {
|
||||
plat, _, ver, err := host.PlatformInformation()
|
||||
func GetOSPlatform() (plat string) {
|
||||
plat, _, _, err := host.PlatformInformation()
|
||||
if nil != err {
|
||||
logging.LogWarnf("get os platform failed: %s", err)
|
||||
return "Unknown", ""
|
||||
return "Unknown"
|
||||
}
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue