提交 b1f7fbf6 编写于 作者: M mehaotian

fix(stat): 修复统计渠道类型错误

上级 d36b62bc
......@@ -149,11 +149,11 @@ export const get_version = () : string => {
* 获取渠道
*/
export const get_channel = () : string => {
// const platformName = get_platform_name()
let channel = ''
// if (platformName === 'n') {
// channel = plus.runtime.channel
// }
const platformName = get_platform_name()
let channel:string = ''
if (platformName === 'n') {
channel = sysAppBase.channel ?? ''
}
// if (platformName === 'wx') {
// // TODO 需要调研小程序二维码渠道如何获取;
// }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册