提交 3cff96e3 编写于 作者: 雪洛's avatar 雪洛

feat: save channel or scene as register channel

上级 2c772bac
......@@ -88,12 +88,14 @@ async function postRegister (params = {}) {
appVersion,
appVersionCode,
channel,
scene,
clientIP,
osName
} = this.getClientInfo()
Object.assign(user, extraData)
const registerChannel = channel || scene
user.register_env = {
appid: appId || '',
uni_platform: this.clientPlatform || '',
......@@ -101,7 +103,7 @@ async function postRegister (params = {}) {
app_name: appName || '',
app_version: appVersion || '',
app_version_code: appVersionCode || '',
channel: channel ? channel + '' : '', // channel可能为数字,统一存为字符串
channel: registerChannel ? registerChannel + '' : '', // channel可能为数字,统一存为字符串
client_ip: clientIP || ''
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册