mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 记录操作系统平台
This commit is contained in:
parent
2a4fc32e50
commit
08641595ae
4 changed files with 14 additions and 9 deletions
|
|
@ -23,11 +23,11 @@ import (
|
|||
"github.com/siyuan-note/logging"
|
||||
)
|
||||
|
||||
func GetOSPlatform() (ret string) {
|
||||
ret, _, _, err := host.PlatformInformation()
|
||||
func GetOSPlatform() (plat, ver string) {
|
||||
plat, _, ver, 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