erekook 1 год назад
Родитель
Сommit
3603d3bf05
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      utils/util.js

+ 4 - 1
utils/util.js

@@ -133,6 +133,8 @@ export const SendEvent = (eventName, eventParam, self) => {
         const app = self || getApp()
         let eParam = {...eventParam}
 
+        const deviceInfo = wx.getDeviceInfo()
+
         let opt = {
             app_id: apple.appKey,
             app_channel: apple.ghid,
@@ -141,7 +143,8 @@ export const SendEvent = (eventName, eventParam, self) => {
             os_type: 1,
             event_value: JSON.stringify(eParam),
             report_time: Date.now(),
-            trace_id: uuid()
+            trace_id: uuid(),
+            user_agent: JSON.stringify(deviceInfo)
         }
 
         opt.union_id = app.globalData.unionId || ''