Explorar o código

[edit][埋点]

zhangwei %!s(int64=2) %!d(string=hai) anos
pai
achega
2c00a5c648
Modificáronse 1 ficheiros con 9 adicións e 10 borrados
  1. 9 10
      src/view/iframe/treasure-hunt/cover.vue

+ 9 - 10
src/view/iframe/treasure-hunt/cover.vue

@@ -256,22 +256,21 @@ const logPreRepost = () => {
     }
     params.rootTwitterName = state.detail.postUserInfo.nickName
     let names = []
-
-    if (state.detail.inviteUserInfo.uid != global_userInfo.uid) {
-        if (state.detail.inviteUserInfo) {
+    if (state.detail.inviteUserInfo) {
+        if (state.detail.inviteUserInfo.uid != global_userInfo.uid) {
             // isFatherTwitterFans = inviteUserInfo.nickName 的关注关系
             // 发送事件校验关注关系
             names.push({
                 type: 'invite',
                 name: state.detail.inviteUserInfo.nickName
             })
-        } else {
-            if (state.detail.postUserInfo.uid != global_userInfo.uid) {
-                names.push({
-                    type: 'invite',
-                    name: state.detail.postUserInfo.nickName
-                })
-            }
+        }
+    } else {
+        if (state.detail.postUserInfo.uid != global_userInfo.uid) {
+            names.push({
+                type: 'invite',
+                name: state.detail.postUserInfo.nickName
+            })
         }
     }