Jelajahi Sumber

Merge branch 'main' of http://gitlab.pubdata.cn/hlm/multi-platform-media-manage

Ethanfly 2 hari lalu
induk
melakukan
d2558837b4

+ 3 - 4
client/src/components/BrowserTab.vue

@@ -1789,7 +1789,6 @@ function isLoggedInByUrl(): boolean {
       /passport\.xiaohongshu/,
     ],
     weixin_video: [
-      /channels\.weixin\.qq\.com\/?$/,      // 视频号根路径
       /channels\.weixin\.qq\.com\/login\.html/,   // 登录页
       /channels\.weixin\.qq\.com\/platform\/login/, // iframe 登录页
     ],
@@ -1827,7 +1826,8 @@ function isLoggedInByUrl(): boolean {
       /creator\.xiaohongshu\.com\/new\//,           // /new/ 下的其他页面也算
     ],
     weixin_video: [
-      /channels\.weixin\.qq\.com\/platform(?!\/login)/,        // 主要判断条件(排除 login-for-iframe 等未登录态)
+      /channels\.weixin\.qq\.com\/platform(?!\/login)/,        // 主要判断条件(排除 iframe 登录页)
+      /channels\.weixin\.qq\.com\/mp\//,                       // 新版视频号后台(mp 路径)
     ],
     bilibili: [
       /member\.bilibili\.com\/platform/,
@@ -1859,7 +1859,7 @@ function isLoggedInByUrl(): boolean {
       /xiaohongshu\.com/,
       /xhslink\.com/,
     ],
-    weixin_video: [],
+    weixin_video: [/channels\.weixin\.qq\.com/],
     bilibili: [/bilibili\.com/],
     toutiao: [/toutiao\.com/],
     baijiahao: [/baidu\.com/, /baijiahao\.baidu\.com/],
@@ -1987,7 +1987,6 @@ function isOnLoginPage(): boolean {
       /passport\.xiaohongshu/,
     ],
     weixin_video: [
-      /channels\.weixin\.qq\.com\/?$/,      // 视频号根路径
       /channels\.weixin\.qq\.com\/login\.html/,   // 视频号登录页
       /channels\.weixin\.qq\.com\/platform\/login/, // 视频号 iframe 登录页
     ],

TEMPAT SAMPAH
server/python/platforms/__pycache__/base.cpython-313.pyc


+ 1 - 1
server/src/services/HeadlessBrowserService.ts

@@ -2299,7 +2299,7 @@ class HeadlessBrowserService {
       },
       weixin_video: {
         homeUrl: 'https://channels.weixin.qq.com/platform',
-        loginIndicators: ['login', 'passport'],
+        loginIndicators: ['login.html', '/login', 'passport'],
       },
       baijiahao: {
         homeUrl: 'https://baijiahao.baidu.com/builder/rc/home',