@@ -168,7 +168,7 @@ function YLQCustom(props: PropsWithChildren<CustomPropsType>) {
adType: ownAdSystemType
} = adData
- const userCode = Taro.$global.userCode || Taro.getStorageSync('userCode') || ''
+ const userCode = Taro?.$global?.userCode || Taro.getStorageSync('userCode') || ''
return {
adpCode: trafficCode,