🎨 Improve get os info for HarmonyOS

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-10-26 21:18:51 +08:00
parent 3abb5145c2
commit 923f9be756
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -25,5 +25,8 @@ func GetOSPlatform() (plat string) {
if ContainerAndroid == Container {
return "Android " + MobileOSVer
}
if ContainerHarmony == Container {
return "HarmonyOS " + MobileOSVer
}
return "Unknown " + MobileOSVer
}