|
@@ -28,7 +28,6 @@ function YLQCustom(props: PropsWithChildren<CustomPropsType>) {
|
|
|
const [adData, setAdData] = useState<any>({})
|
|
|
|
|
|
useReady(() => {
|
|
|
- console.log('YLQCustom init', Taro.$global)
|
|
|
init()
|
|
|
pqtId = generateUUID()
|
|
|
getAdConfig()
|
|
@@ -110,7 +109,6 @@ function YLQCustom(props: PropsWithChildren<CustomPropsType>) {
|
|
|
'wx5ef216d1caf4a0ea',
|
|
|
`/pages/ad-launch-page/index?q=${path}`
|
|
|
)
|
|
|
-
|
|
|
console.log(`/pages/ad-launch-page/index?q=${path}`)
|
|
|
}
|
|
|
|
|
@@ -170,6 +168,8 @@ function YLQCustom(props: PropsWithChildren<CustomPropsType>) {
|
|
|
adType: ownAdSystemType
|
|
|
} = adData
|
|
|
|
|
|
+ const userCode = Taro.$global.userCode || Taro.getStorageSync('userCode') || ''
|
|
|
+
|
|
|
return {
|
|
|
adpCode: trafficCode,
|
|
|
advertiserCode,
|
|
@@ -186,7 +186,8 @@ function YLQCustom(props: PropsWithChildren<CustomPropsType>) {
|
|
|
bidCreativeParam: JSON.stringify(bidCreativeParam || {}), // {}
|
|
|
adpId,
|
|
|
pqtId,
|
|
|
- ownAdSystemType
|
|
|
+ ownAdSystemType,
|
|
|
+ userCode
|
|
|
}
|
|
|
}
|
|
|
|