fstarter 2.10.57 → 2.11.2
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/package.json
CHANGED
|
@@ -139,15 +139,15 @@ var http = {
|
|
|
139
139
|
'Accept-Device': data[1].model + '-' + data[1].systemType + '-' + data[1].version,
|
|
140
140
|
'Accept-DeviceOS': data[1].brand + '-' + data[1].chancel,
|
|
141
141
|
'Accept-Location': 'NULL', // location
|
|
142
|
-
'Accept-ISP':
|
|
143
|
-
'Accept-StartTime':
|
|
144
|
-
'Accept-TimeZone':
|
|
142
|
+
'Accept-ISP': 'NULL',
|
|
143
|
+
'Accept-StartTime': 'NULL',
|
|
144
|
+
'Accept-TimeZone': 28800000,
|
|
145
145
|
'Accept-Attr1': data[1].uuid,
|
|
146
146
|
'Accept-Attr2': attr2,
|
|
147
147
|
'Accept-Attr3': 'zh_CN',
|
|
148
148
|
'Accept-Attr4': 'NULL', // 包名 传空
|
|
149
149
|
'Accept-Attr6': data[0]?data[0].loginId:'NULL',
|
|
150
|
-
'Real-Ip':
|
|
150
|
+
'Real-Ip': 'NULL'
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
if (needAuth) {
|
package/src/plugins/assets/ua.js
CHANGED
|
@@ -3,7 +3,7 @@ export const ua = (function() {
|
|
|
3
3
|
console.log('agent', u)
|
|
4
4
|
return {
|
|
5
5
|
|
|
6
|
-
isIspPhone: u.indexOf('
|
|
6
|
+
isIspPhone: u.indexOf('hengan_app') > -1 || !!u.match(/mobile.*ios/),
|
|
7
7
|
mobile: !!u.match(/.*applewebkit.*mobile.*/),
|
|
8
8
|
microMsg: u.indexOf('micromessenger') > -1,
|
|
9
9
|
|
|
@@ -17,7 +17,7 @@ export const ua2 = function() {
|
|
|
17
17
|
console.log('agent', u)
|
|
18
18
|
return {
|
|
19
19
|
|
|
20
|
-
isIspPhone: u.indexOf('
|
|
20
|
+
isIspPhone: u.indexOf('hengan_app') > -1 || !!u.match(/mobile.*ios/),
|
|
21
21
|
mobile: !!u.match(/.*applewebkit.*mobile.*/),
|
|
22
22
|
microMsg: u.indexOf('micromessenger') > -1,
|
|
23
23
|
|
|
@@ -521,7 +521,7 @@ const nativeUtils = {
|
|
|
521
521
|
getDeviceInfo() {
|
|
522
522
|
return new Promise((resolve, reject) => {
|
|
523
523
|
native.device.getDeviceInfo({
|
|
524
|
-
fields: ['osName', 'model', 'brand', 'osVersion', 'screen', 'deviceId', '
|
|
524
|
+
fields: ['osName', 'model', 'brand', 'osVersion', 'screen', 'deviceId', 'packageInfo', 'appVersion'],
|
|
525
525
|
sceneDesc: '获取设备信息'
|
|
526
526
|
}).then(res => {
|
|
527
527
|
resolve(res);
|
|
@@ -27,12 +27,12 @@ var service = {
|
|
|
27
27
|
version: data.appVersion,
|
|
28
28
|
brand: data.brand,
|
|
29
29
|
chancel: data.model,
|
|
30
|
-
isp:
|
|
31
|
-
startTime:
|
|
32
|
-
timeZone:
|
|
30
|
+
isp: 'NULL',
|
|
31
|
+
startTime: 'NULL',
|
|
32
|
+
timeZone: 'NULL',
|
|
33
33
|
uuid: data.deviceId,
|
|
34
34
|
packageInfo: data.packageInfo,
|
|
35
|
-
ip:
|
|
35
|
+
ip:'NULL'
|
|
36
36
|
}
|
|
37
37
|
})
|
|
38
38
|
|