Bläddra i källkod

feat: 删除userCode

huangzhichao 1 år sedan
förälder
incheckning
e4e37c3158
2 ändrade filer med 1 tillägg och 12 borttagningar
  1. 1 4
      src/plugin/components/custom/index.tsx
  2. 0 8
      src/plugin/index.ts

+ 1 - 4
src/plugin/components/custom/index.tsx

@@ -168,8 +168,6 @@ function YLQCustom(props: PropsWithChildren<CustomPropsType>) {
       adType: ownAdSystemType
     } = adData
 
-    const userCode = Taro?.$global?.userCode || Taro.getStorageSync('userCode') || ''
-
     return {
       adpCode: trafficCode,
       advertiserCode,
@@ -186,8 +184,7 @@ function YLQCustom(props: PropsWithChildren<CustomPropsType>) {
       bidCreativeParam: JSON.stringify(bidCreativeParam || {}), // {}
       adpId,
       pqtId,
-      ownAdSystemType,
-      userCode
+      ownAdSystemType
     }
   }
 

+ 0 - 8
src/plugin/index.ts

@@ -3,14 +3,6 @@ import Taro from '@tarojs/taro'
 function loadPlugin() {
   Taro.$global = createTaroGlobal()
   listenNetwork()
-
-  Taro.pluginLogin({
-    success(res) {
-      const { code } = res || {}
-      Taro.$global.userCode = code
-      Taro.setStorageSync('userCode', code)
-    }
-  })
 }
 
 function createTaroGlobal() {