mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-03 22:21:48 +01:00
🎨 记录操作系统平台
This commit is contained in:
parent
08641595ae
commit
a6d945a9a1
3 changed files with 11 additions and 8 deletions
|
|
@ -20,10 +20,10 @@ package util
|
|||
|
||||
func GetOSPlatform() (plat, ver string) {
|
||||
if ContainerIOS == Container {
|
||||
return "iOS", ""
|
||||
return "iOS", MobileOSVer
|
||||
}
|
||||
if ContainerAndroid == Container {
|
||||
return "Android", ""
|
||||
return "Android", MobileOSVer
|
||||
}
|
||||
return "Unknown", ""
|
||||
return "Unknown", MobileOSVer
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,11 +45,14 @@ const (
|
|||
// IsExiting 是否正在退出程序。
|
||||
var IsExiting = false
|
||||
|
||||
// MobileOSVer 移动端操作系统版本。
|
||||
var MobileOSVer string
|
||||
|
||||
func logBootInfo() {
|
||||
plat, platVer := GetOSPlatform()
|
||||
osInfo := plat
|
||||
if "" != platVer {
|
||||
osInfo += "/" + platVer
|
||||
osInfo += " " + platVer
|
||||
}
|
||||
logging.LogInfof("kernel is booting:\n"+
|
||||
" * ver [%s]\n"+
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue