|
|
@@ -25,6 +25,7 @@ export default class DataSystem {
|
|
|
console.log("===[DataSystem", eventId, des);
|
|
|
if (eventId && des) {
|
|
|
JsbSystem.sendEvent(eventId, des);
|
|
|
+ this.sendXYTrack(eventId, 'des', des);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -37,6 +38,7 @@ export default class DataSystem {
|
|
|
console.log("===[DataSystem", eventId, des, value);
|
|
|
if (eventId && des) {
|
|
|
JsbSystem.sendEventValue(eventId, des, value);
|
|
|
+ this.sendXYTrack(eventId, des, value);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -86,4 +88,33 @@ export default class DataSystem {
|
|
|
mk.http.sendData('cp', data);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ private xyTrackUrl = 'https://hyperion-track-app.mokamrp.com/';
|
|
|
+ /**
|
|
|
+ * 星云打点 Track
|
|
|
+ */
|
|
|
+ public sendXYTrack(eventId: string, des: string, value: number | string) {
|
|
|
+ const event_value = {}
|
|
|
+ event_value[des] = value
|
|
|
+
|
|
|
+ let data = {
|
|
|
+ app_id: '30WAK1lNDc0b99LzSOJqv3TXa',
|
|
|
+ app_type: 1,
|
|
|
+ app_ver: gData.appData.appVersion,
|
|
|
+ app_channel: gData.appData.tfChannel,
|
|
|
+ report_time: Date.now(),
|
|
|
+ user_id: gData.loginData.uin,
|
|
|
+ device_id: "",
|
|
|
+ os_type: 1,
|
|
|
+ user_agent: gData.appData.UA,
|
|
|
+ imei: gData.appData.machineInfo.imei,
|
|
|
+ ifda: gData.appData.machineInfo.idfa,
|
|
|
+ oaid: gData.appData.machineInfo.oaid,
|
|
|
+ event_id: eventId,
|
|
|
+ event_value: JSON.stringify(event_value)
|
|
|
+ }
|
|
|
+
|
|
|
+ let url = this.xyTrackUrl + 'track';
|
|
|
+ mk.http.sendRequestNormal(url, 'POST', JSON.stringify(data));
|
|
|
+ }
|
|
|
}
|