提交 41abba65 编写于 作者: Q qiang

chore: build

上级 5a31a6e4
...@@ -6488,6 +6488,7 @@ var serviceContext = (function () { ...@@ -6488,6 +6488,7 @@ var serviceContext = (function () {
} = systemInfo; } = systemInfo;
const brand = deviceBrand.toLowerCase(); const brand = deviceBrand.toLowerCase();
const _osName = osName.toLowerCase();
return { return {
deviceBrand: brand, deviceBrand: brand,
...@@ -6498,8 +6499,8 @@ var serviceContext = (function () { ...@@ -6498,8 +6499,8 @@ var serviceContext = (function () {
deviceType, deviceType,
brand, brand,
model: deviceModel, model: deviceModel,
system: `${osName === 'ios' ? 'iOS' : 'Android'} ${osVersion}`, system: `${_osName === 'ios' ? 'iOS' : 'Android'} ${osVersion}`,
platform: osName platform: _osName
} }
} }
...@@ -6546,6 +6547,7 @@ var serviceContext = (function () { ...@@ -6546,6 +6547,7 @@ var serviceContext = (function () {
_initSystemInfo = true; _initSystemInfo = true;
const { osName, osLanguage, osVersion } = systemInfo; const { osName, osLanguage, osVersion } = systemInfo;
const _osName = osName.toLowerCase();
const osLanguageSplit = osLanguage.split('-'); const osLanguageSplit = osLanguage.split('-');
const osLanguageSplitLast = osLanguageSplit[osLanguageSplit.length - 1]; const osLanguageSplitLast = osLanguageSplit[osLanguageSplit.length - 1];
const _osLanguage = `${osLanguageSplit[0]}${osLanguageSplitLast ? '-' + osLanguageSplitLast : ''}`; const _osLanguage = `${osLanguageSplit[0]}${osLanguageSplitLast ? '-' + osLanguageSplitLast : ''}`;
...@@ -6555,11 +6557,12 @@ var serviceContext = (function () { ...@@ -6555,11 +6557,12 @@ var serviceContext = (function () {
fontSizeSetting: appBaseInfo.hostFontSizeSetting, fontSizeSetting: appBaseInfo.hostFontSizeSetting,
uniCompileVersion: __uniConfig.compilerVersion, uniCompileVersion: __uniConfig.compilerVersion,
uniRuntimeVersion: __uniConfig.compilerVersion, uniRuntimeVersion: __uniConfig.compilerVersion,
osLanguage: _osLanguage osLanguage: _osLanguage,
osName: _osName
}; };
if (osName === 'ios') { if (_osName === 'ios') {
extraData.romName = osName; extraData.romName = _osName;
extraData.romVersion = osVersion; extraData.romVersion = osVersion;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册