提交 64a24f34 作者: 王进

统计上报接口增加场景值字段

上级 afb99301
...@@ -422,6 +422,7 @@ class WechatSDK { ...@@ -422,6 +422,7 @@ class WechatSDK {
const _selt = this const _selt = this
const options = (wx as any).getLaunchOptionsSync() const options = (wx as any).getLaunchOptionsSync()
console.log("@@启动参数--->", options) console.log("@@启动参数--->", options)
this.ReportParams.sceneId = options.scene;
if (all) return options if (all) return options
if (options.query && Object.keys(options.query).length > 0) { if (options.query && Object.keys(options.query).length > 0) {
if (options.query.scene && options.query.scene != '') { // 扫码参数 if (options.query.scene && options.query.scene != '') { // 扫码参数
...@@ -903,7 +904,8 @@ class WechatSDK { ...@@ -903,7 +904,8 @@ class WechatSDK {
appVersion: null, // 选填,产品版本号,配置文件配置 appVersion: null, // 选填,产品版本号,配置文件配置
screenWidth: null, // 选填,屏幕宽度,微信api获取 screenWidth: null, // 选填,屏幕宽度,微信api获取
screenHeight: null, // 选填,屏幕高度,微信api获取 screenHeight: null, // 选填,屏幕高度,微信api获取
time: null // 必填,请求的时间戳(秒) time: null, // 必填,请求的时间戳(秒)
sceneId: '' // 启动场景值
} }
// SDK上报参数 // SDK上报参数
private sdkParams = { private sdkParams = {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论