Skip to content

Commit eaa78cb

Browse files
authored
Merge pull request #6 from ant-mini-program/remoteLog
Remote log
2 parents 6994e81 + 644b1fc commit eaa78cb

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

components/util.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,20 @@ function label(text, index, total) {
4242
}
4343

4444
function tracert(type, appId, url) {
45+
my.call('remotelog', {
46+
type: 'monitor',
47+
bizType: 'FORTUNEAPP',
48+
logLevel: 2, // 1 - high, 2 - medium, 3 - low
49+
actionId: 'exposure',
50+
param1: url,
51+
param4: {
52+
chInfo: '',
53+
type,
54+
appId,
55+
url,
56+
},
57+
spmId: 'a945.b10625.c25441.d47746',
58+
});
4559
}
4660

4761
export default {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mini-chart",
3-
"version": "0.1.7",
3+
"version": "0.1.8",
44
"description": "小程序图表库",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)