Commit e33ba3ee by 李嘉林

feat: 行为收集完善os参数

parent 2e6ba997
...@@ -5768,9 +5768,9 @@ ...@@ -5768,9 +5768,9 @@
"dev": true "dev": true
}, },
"mayi-analytics": { "mayi-analytics": {
"version": "1.1.64", "version": "1.1.66",
"resolved": "https://registry.npmjs.org/mayi-analytics/-/mayi-analytics-1.1.64.tgz", "resolved": "https://registry.npmjs.org/mayi-analytics/-/mayi-analytics-1.1.66.tgz",
"integrity": "sha512-s5zsZItmFn7XjtidGFuonGQsc0pFofP/aZVWkPE6dPShNDJl6OGc/L2nLmWx2NuiIfu8OGYnKL8R7S66Xsjb0A==", "integrity": "sha512-bVcxK2tLb3yibr6veGSqXbLY8FPd/VftSX23ZquRvftVom/wO3ous1du+LvHpWvcrLTX1XmOVGToV07D5nv5kQ==",
"requires": { "requires": {
"js-cookie": "^2.2.0", "js-cookie": "^2.2.0",
"qs": "^6.7.0", "qs": "^6.7.0",
...@@ -5778,9 +5778,9 @@ ...@@ -5778,9 +5778,9 @@
}, },
"dependencies": { "dependencies": {
"qs": { "qs": {
"version": "6.12.1", "version": "6.12.2",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.12.1.tgz", "resolved": "https://registry.npmjs.org/qs/-/qs-6.12.2.tgz",
"integrity": "sha512-zWmv4RSuB9r2mYQw3zxQuHWeU+42aKi1wWig/j4ele4ygELZ7PEO6MM7rim9oAQH2A5MWfsAVf/jPvTPgCbvUQ==", "integrity": "sha512-x+NLUpx9SYrcwXtX7ob1gnkSems4i/mGZX5SlYxwIau6RrUSODO89TR/XDGGpn5RPWSYIB+aSfuSlV5+CmbTBg==",
"requires": { "requires": {
"side-channel": "^1.0.6" "side-channel": "^1.0.6"
} }
...@@ -8944,9 +8944,9 @@ ...@@ -8944,9 +8944,9 @@
}, },
"dependencies": { "dependencies": {
"object-inspect": { "object-inspect": {
"version": "1.13.1", "version": "1.13.2",
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.2.tgz",
"integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==" "integrity": "sha512-IRZSRuzJiynemAXPYtPe5BoI/RESNYR7TYm50MC5Mqbd3Jmw5y790sErYw3V6SryFJD64b74qQQs9wn5Bg/k3g=="
} }
} }
}, },
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
"build:my": "node build/build.js my" "build:my": "node build/build.js my"
}, },
"dependencies": { "dependencies": {
"mayi-analytics": "^1.1.64", "mayi-analytics": "^1.1.66",
"mayi-front-tools": "^1.0.3", "mayi-front-tools": "^1.0.3",
"mpvue": "^2.0.0", "mpvue": "^2.0.0",
"mpvue-wxparse": "^0.6.5", "mpvue-wxparse": "^0.6.5",
......
...@@ -59,7 +59,7 @@ export default { ...@@ -59,7 +59,7 @@ export default {
gid: this.extConfig.groupId, gid: this.extConfig.groupId,
mixid: this.extConfig.mixid, mixid: this.extConfig.mixid,
host: process.env.MANALYTICS_HOST + '?', host: process.env.MANALYTICS_HOST + '?',
os: this.getOsJSON(), os: JSON.stringify(this.getOsJSON()),
}) })
console.log("1444444444", this.extConfig); console.log("1444444444", this.extConfig);
...@@ -370,14 +370,15 @@ export default { ...@@ -370,14 +370,15 @@ export default {
.catch((err) => {}); .catch((err) => {});
}, },
getOsJSON() { getOsJSON() {
let sys = wx.getSystemInfoSync();
let obj = { let obj = {
osName: '', // ios或安卓 osName: sys.platform, // ios或安卓
osVersion: '', // 操作系统版本号 osVersion: sys.system, // 操作系统版本号
wxVersion: '', // 微信版本号 wxVersion: sys.version, // 微信版本号
wxSDKVersion: '', // 微信小程序SDK版本 wxSDKVersion: sys.SDKVersion, // 微信小程序SDK版本
mpCodeVersion: '', // 小程序环境时, 我们内部小程序的版本信息 mpCodeVersion: wx.getAccountInfoSync().miniProgram.version, // 小程序环境时, 我们内部小程序的版本信息
}; };
return Obj; return obj;
} }
}, },
onError(data) { onError(data) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment