🎨 记录操作系统平台

This commit is contained in:
Liang Ding 2023-02-10 21:40:19 +08:00
parent 235d940cad
commit 2a4fc32e50
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 3 additions and 3 deletions

View file

@ -27,7 +27,7 @@ func GetOSPlatform() (ret string) {
ret, _, _, err := host.PlatformInformation()
if nil != err {
logging.LogWarnf("get os platform failed: %s", err)
return
return "Unknown"
}
return
}