|
|
@@ -133,7 +133,7 @@ export const SendEvent = (eventName, eventParam, self) => {
|
|
|
const app = self || getApp()
|
|
|
let eParam = {...eventParam}
|
|
|
|
|
|
- const deviceInfo = wx.getDeviceInfo()
|
|
|
+ const { brand, model, system, platform } = wx.getDeviceInfo()
|
|
|
|
|
|
let opt = {
|
|
|
app_id: apple.appKey,
|
|
|
@@ -144,7 +144,12 @@ export const SendEvent = (eventName, eventParam, self) => {
|
|
|
event_value: JSON.stringify(eParam),
|
|
|
report_time: Date.now(),
|
|
|
trace_id: uuid(),
|
|
|
- user_agent: JSON.stringify(deviceInfo)
|
|
|
+ user_agent: JSON.stringify({
|
|
|
+ brand,
|
|
|
+ model,
|
|
|
+ system,
|
|
|
+ platform,
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
opt.union_id = app.globalData.unionId || ''
|