fstarter 2.10.57 → 2.11.1

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "fstarter",
3
3
  "description": "A Vue.js project",
4
- "version": "2.10.57",
4
+ "version": "2.11.1",
5
5
  "author": "han.zhang <zhanghan810810@163.com>",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -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': data[1].isp,
143
- 'Accept-StartTime': data[1].startTime,
144
- 'Accept-TimeZone': data[1].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': data[1].ip
150
+ 'Real-Ip': 'NULL'
151
151
  }
152
152
 
153
153
  if (needAuth) {
@@ -3,7 +3,7 @@ export const ua = (function() {
3
3
  console.log('agent', u)
4
4
  return {
5
5
 
6
- isIspPhone: u.indexOf('yjapp') > -1 || !!u.match(/mobile.*ios/),
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('yjapp') > -1 || !!u.match(/mobile.*ios/),
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', 'networkType', 'ip', 'timezone', 'StartTime', 'packageInfo', 'isp', 'appVersion'],
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: data.isp,
31
- startTime: data.StartTime,
32
- timeZone: data.timezone,
30
+ isp: 'NULL',
31
+ startTime: 'NULL',
32
+ timeZone: 'NULL',
33
33
  uuid: data.deviceId,
34
34
  packageInfo: data.packageInfo,
35
- ip:data.ip
35
+ ip:'NULL'
36
36
  }
37
37
  })
38
38