提交 158a9cf3 编写于 作者: L liuxiaohang

fix: getSystemInfo osName lowerCase

上级 4ed1031a
......@@ -228,7 +228,7 @@ export function getSystemInfoSync () {
browserName,
browseVersion,
osLanguage: language,
osName: osname,
osName: osname.toLocaleLowerCase(),
osVersion: osversion,
hostLanguage: language,
version: __uniConfig.appVersion,
......
......@@ -34,7 +34,7 @@ export function populateParameters (result) {
let osName = ''
let osVersion = ''
if (__PLATFORM__ === 'mp-alipay') {
osName = platform.toLocaleLowerCase()
osName = platform
osVersion = system
} else {
osName = system.split(' ')[0] || ''
......@@ -94,7 +94,7 @@ export function populateParameters (result) {
deviceBrand,
deviceModel: model,
deviceType,
osName,
osName: osName.toLocaleLowerCase(),
osVersion,
osLanguage: language,
osTheme: theme,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册