提交 50004fea 编写于 作者: M mehaotian

fix(stat): app 支持渠道channel 获取

上级 e25a51f1
......@@ -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|null= ''
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.
先完成此消息的编辑!
想要评论请 注册