Commit 5fe239b6 authored by 郭志伟's avatar 郭志伟

fix: 调整vccChannel判断

parent d9ccda77
......@@ -13,9 +13,11 @@ function getURLSearchParams(json) {
}
function getVccChannel() {
let storageChannel = localStorage.get('vccChannel');
storageChannel = !isNaN(Number(storageChannel)) ? storageChannel : '';
return isWechat
? localStorage.get('vccChannel') || ''
: (isAndroid ? '159905' : isIOS ? '159904' : localStorage.get('vccChannel')) || '';
? storageChannel || ''
: (isAndroid ? '159905' : isIOS ? '159904' : storageChannel || '');
}
export default {
service: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment