Authored by yyq

fix md5

1 import axios from 'axios'; 1 import axios from 'axios';
2 import md5 from 'md5'; 2 import md5 from 'md5';
3 3
  4 +
4 export default class reportApp { 5 export default class reportApp {
5 constructor(params = {}) { 6 constructor(params = {}) {
6 this.isProd = !params.unProd; 7 this.isProd = !params.unProd;
@@ -63,7 +64,7 @@ export default class reportApp { @@ -63,7 +64,7 @@ export default class reportApp {
63 device: this.device, 64 device: this.device,
64 events: [ 65 events: [
65 Object.assign({ 66 Object.assign({
66 - uid: md5(uid), 67 + uid: md5(`${uid}`),
67 ts: new Date().getTime() + '000000', 68 ts: new Date().getTime() + '000000',
68 pt: pt, 69 pt: pt,
69 pn: pn, 70 pn: pn,