Browse Source

抽奖红包facebook渲染

nieyuge 2 năm trước cách đây
mục cha
commit
686c1c51d1
1 tập tin đã thay đổi với 6 bổ sung1 xóa
  1. 6 1
      src/logic/content/ParseCard.js

+ 6 - 1
src/logic/content/ParseCard.js

@@ -406,7 +406,12 @@ class ParseCard {
             let originUrl = new URL(short_url);
             let post_Id = originUrl.pathname.slice(1);
 
-            dom.appendChild(this.createIframe({ post_Id, tweet_author }, true))
+            if (post_Id.indexOf('luckdraw/') >= 0) {
+                post_Id = post_Id.replace('luckdraw/', '');
+                dom.appendChild(this.createIframe({ post_Id, tweet_author, page_type:'抽奖' }, true))
+            } else {
+                dom.appendChild(this.createIframe({ post_Id, tweet_author }, true))
+            }
         }
     }
     replaceNftGroupDomRedPacket({ dom_card, tweet_Id, post_Id, time, short_url }) {