@zxhy-npm/send-sls-logger 1.1.9 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/trace.js +6 -1
- package/package.json +1 -1
package/lib/trace.js
CHANGED
|
@@ -187,6 +187,11 @@ export const mobileInfo = (() => {
|
|
|
187
187
|
const match = ua.match(/Weibo\/([\d.]+)/);
|
|
188
188
|
browserVersion = match ? match[1] : '';
|
|
189
189
|
}
|
|
190
|
+
else if (ua.indexOf('ZHUBOBAO') > -1) {
|
|
191
|
+
browserName = 'ZHUBOBAO';
|
|
192
|
+
const match = ua.match(/ZHUBOBAO\/([\d.]+)/);
|
|
193
|
+
browserVersion = match ? match[1] : '';
|
|
194
|
+
}
|
|
190
195
|
else if (ua.indexOf('UCBrowser') > -1) {
|
|
191
196
|
browserName = 'UC';
|
|
192
197
|
const match = ua.match(/UCBrowser\/([\d.]+)/);
|
|
@@ -197,7 +202,7 @@ export const mobileInfo = (() => {
|
|
|
197
202
|
const match = ua.match(/Version\/([\d.]+)/);
|
|
198
203
|
browserVersion = match ? match[1] : '';
|
|
199
204
|
}
|
|
200
|
-
return `${deviceModel}
|
|
205
|
+
return `${deviceModel} ${browserName}${browserVersion ? `-${browserVersion}` : ''}`;
|
|
201
206
|
})();
|
|
202
207
|
/** 设备型号
|
|
203
208
|
* pc: MacOS 10.15.7-(Chrome-131.0)
|