@ikenxuan/amagi 6.2.0 → 6.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -541,6 +541,15 @@ var BilibiliAPI = class {
541
541
  getUserCard(data) {
542
542
  return `https://api.bilibili.com/x/web-interface/card?mid=${data.host_mid}&photo=true`;
543
543
  }
544
+ /**
545
+ * 按用户 UID 获取直播状态。
546
+ *
547
+ * @remarks
548
+ * 该接口直接返回用户当前直播状态,不依赖空间动态中的直播推荐卡片。
549
+ */
550
+ getUserLiveStatus(data) {
551
+ return `https://api.live.bilibili.com/room/v1/Room/getRoomInfoOld?mid=${data.host_mid}`;
552
+ }
544
553
  /** 获取直播间信息 */
545
554
  getLiveRoomInfo(data) {
546
555
  return `https://api.live.bilibili.com/room/v1/Room/get_info?room_id=${data.room_id}`;
@@ -986,6 +995,7 @@ const BilibiliUserParamsSchema = zod.default.object({
986
995
  methodType: zod.default.enum([
987
996
  "userCard",
988
997
  "userDynamicList",
998
+ "userLiveStatus",
989
999
  "uploaderTotalViews",
990
1000
  "userSpaceInfo"
991
1001
  ], { error: "方法类型必须是指定的枚举值之一" }),
@@ -1086,6 +1096,7 @@ const BilibiliValidationSchemas = {
1086
1096
  commentReplies: BilibiliCommentReplyParamsSchema,
1087
1097
  userCard: BilibiliUserParamsSchema,
1088
1098
  userDynamicList: BilibiliUserParamsSchema,
1099
+ userLiveStatus: BilibiliUserParamsSchema,
1089
1100
  userSpaceInfo: BilibiliUserParamsSchema,
1090
1101
  emojiList: BilibiliEmojiParamsSchema,
1091
1102
  bangumiInfo: BilibiliBangumiInfoParamsSchema,
@@ -1116,6 +1127,7 @@ const BilibiliMethodRoutes = {
1116
1127
  commentReplies: "/fetch_comment_reply",
1117
1128
  userCard: "/fetch_user_profile",
1118
1129
  userDynamicList: "/fetch_user_dynamic",
1130
+ userLiveStatus: "/fetch_user_live_status",
1119
1131
  userSpaceInfo: "/fetch_user_space_info",
1120
1132
  emojiList: "/fetch_emoji_list",
1121
1133
  bangumiInfo: "/fetch_bangumi_video_info",
@@ -2387,6 +2399,27 @@ async function fetchUserDynamicList(options, cookie, requestConfig) {
2387
2399
  });
2388
2400
  }
2389
2401
  /**
2402
+ * 按用户 UID 获取B站直播状态
2403
+ * @param options - 用户参数
2404
+ * @param options.host_mid - 用户 UID
2405
+ * @param cookie - B站 Cookie (可选)
2406
+ * @param requestConfig - 请求配置 (可选)
2407
+ * @returns 用户直播状态与直播间基础信息
2408
+ * @example
2409
+ * ```typescript
2410
+ * const result = await fetchUserLiveStatus({ host_mid: 123456, typeMode: 'strict' }, cookie)
2411
+ * if (result.success && result.data.data.liveStatus === 1) {
2412
+ * console.log(result.data.data.roomid) // 正在直播的房间 ID
2413
+ * }
2414
+ * ```
2415
+ */
2416
+ async function fetchUserLiveStatus(options, cookie, requestConfig) {
2417
+ return fetchBilibiliInternal("userLiveStatus", options, {
2418
+ cookie,
2419
+ requestConfig
2420
+ });
2421
+ }
2422
+ /**
2390
2423
  * 获取B站用户空间详细信息
2391
2424
  * @param options - 用户参数
2392
2425
  * @param options.host_mid - 用户 UID
@@ -2544,6 +2577,37 @@ async function fetchVideoDanmaku(options, cookie, requestConfig) {
2544
2577
  });
2545
2578
  }
2546
2579
  //#endregion
2580
+ //#region src/model/fetchers/shared/request-config.ts
2581
+ /**
2582
+ * 合并 Fetcher 的实例级请求配置与单次请求配置。
2583
+ *
2584
+ * 单次配置优先,请求头单独合并。函数不会修改任一入参,因此同一绑定
2585
+ * Fetcher 可以安全地在并发任务中为不同请求使用不同配置。
2586
+ */
2587
+ const mergeRequestConfig = (base, override) => {
2588
+ if (!override) return base;
2589
+ return {
2590
+ ...base ?? {},
2591
+ ...override,
2592
+ headers: {
2593
+ ...base?.headers ?? {},
2594
+ ...override.headers ?? {}
2595
+ }
2596
+ };
2597
+ };
2598
+ /**
2599
+ * 解析绑定 Fetcher 当前调用实际使用的 cookie 与请求配置。
2600
+ *
2601
+ * 实例级或单次配置显式提供大写 `headers.Cookie` 时,合并后的值同时替换
2602
+ * 底层 Fetcher 的 cookie 参数,确保平台签名、前置请求和最终请求处于同一身份状态。
2603
+ */
2604
+ const resolveBoundRequest = (boundCookie, base, override) => {
2605
+ const requestConfig = mergeRequestConfig(base, override);
2606
+ const headers = requestConfig?.headers;
2607
+ const cookieOverride = Boolean(headers && Object.prototype.hasOwnProperty.call(headers, "Cookie")) ? headers.Cookie : void 0;
2608
+ return [typeof cookieOverride === "string" ? cookieOverride : boundCookie, requestConfig];
2609
+ };
2610
+ //#endregion
2547
2611
  //#region src/model/fetchers/bilibili/bound.ts
2548
2612
  /**
2549
2613
  * 创建绑定了 Cookie 和请求配置的 B站 Fetcher
@@ -2559,35 +2623,37 @@ async function fetchVideoDanmaku(options, cookie, requestConfig) {
2559
2623
  * ```
2560
2624
  */
2561
2625
  function createBoundBilibiliFetcher(cookie, requestConfig) {
2626
+ const resolveRequest = (override) => resolveBoundRequest(cookie, requestConfig, override);
2562
2627
  return {
2563
- fetchVideoInfo: (options) => fetchVideoInfo(options, cookie, requestConfig),
2564
- fetchVideoStreamUrl: (options) => fetchVideoStreamUrl(options, cookie, requestConfig),
2565
- fetchVideoDanmaku: (options) => fetchVideoDanmaku(options, cookie, requestConfig),
2566
- fetchComments: (options) => fetchComments(options, cookie, requestConfig),
2567
- fetchCommentReplies: (options) => fetchCommentReplies$1(options, cookie, requestConfig),
2568
- fetchUserCard: (options) => fetchUserCard(options, cookie, requestConfig),
2569
- fetchUserDynamicList: (options) => fetchUserDynamicList(options, cookie, requestConfig),
2570
- fetchUserSpaceInfo: (options) => fetchUserSpaceInfo(options, cookie, requestConfig),
2571
- fetchUploaderTotalViews: (options) => fetchUploaderTotalViews(options, cookie, requestConfig),
2572
- fetchDynamicDetail: (options) => fetchDynamicDetail(options, cookie, requestConfig),
2628
+ fetchVideoInfo: (options, override) => fetchVideoInfo(options, ...resolveRequest(override)),
2629
+ fetchVideoStreamUrl: (options, override) => fetchVideoStreamUrl(options, ...resolveRequest(override)),
2630
+ fetchVideoDanmaku: (options, override) => fetchVideoDanmaku(options, ...resolveRequest(override)),
2631
+ fetchComments: (options, override) => fetchComments(options, ...resolveRequest(override)),
2632
+ fetchCommentReplies: (options, override) => fetchCommentReplies$1(options, ...resolveRequest(override)),
2633
+ fetchUserCard: (options, override) => fetchUserCard(options, ...resolveRequest(override)),
2634
+ fetchUserDynamicList: (options, override) => fetchUserDynamicList(options, ...resolveRequest(override)),
2635
+ fetchUserLiveStatus: (options, override) => fetchUserLiveStatus(options, ...resolveRequest(override)),
2636
+ fetchUserSpaceInfo: (options, override) => fetchUserSpaceInfo(options, ...resolveRequest(override)),
2637
+ fetchUploaderTotalViews: (options, override) => fetchUploaderTotalViews(options, ...resolveRequest(override)),
2638
+ fetchDynamicDetail: (options, override) => fetchDynamicDetail(options, ...resolveRequest(override)),
2573
2639
  /** @deprecated v6.1.3 已废弃,调用将返回错误信息 */
2574
- fetchDynamicCard: (options) => fetchDynamicCard(options, cookie, requestConfig),
2575
- fetchBangumiInfo: (options) => fetchBangumiInfo(options, cookie, requestConfig),
2576
- fetchBangumiStreamUrl: (options) => fetchBangumiStreamUrl(options, cookie, requestConfig),
2577
- fetchLiveRoomInfo: (options) => fetchLiveRoomInfo$2(options, cookie, requestConfig),
2578
- fetchLiveRoomInitInfo: (options) => fetchLiveRoomInitInfo(options, cookie, requestConfig),
2579
- fetchArticleContent: (options) => fetchArticleContent(options, cookie, requestConfig),
2580
- fetchArticleCards: (options) => fetchArticleCards(options, cookie, requestConfig),
2581
- fetchArticleInfo: (options) => fetchArticleInfo(options, cookie, requestConfig),
2582
- fetchArticleListInfo: (options) => fetchArticleListInfo(options, cookie, requestConfig),
2583
- fetchLoginStatus: (options) => fetchLoginStatus(options, cookie, requestConfig),
2584
- requestLoginQrcode: (options) => requestLoginQrcode$1(options, cookie, requestConfig),
2585
- checkQrcodeStatus: (options) => checkQrcodeStatus(options, cookie, requestConfig),
2586
- requestCaptchaFromVoucher: (options) => requestCaptchaFromVoucher(options, cookie, requestConfig),
2587
- validateCaptchaResult: (options) => validateCaptchaResult(options, cookie, requestConfig),
2588
- convertAvToBv: (options) => convertAvToBv(options, cookie, requestConfig),
2589
- convertBvToAv: (options) => convertBvToAv(options, cookie, requestConfig),
2590
- fetchEmojiList: (options) => fetchEmojiList$3(options, cookie, requestConfig)
2640
+ fetchDynamicCard: (options, override) => fetchDynamicCard(options, ...resolveRequest(override)),
2641
+ fetchBangumiInfo: (options, override) => fetchBangumiInfo(options, ...resolveRequest(override)),
2642
+ fetchBangumiStreamUrl: (options, override) => fetchBangumiStreamUrl(options, ...resolveRequest(override)),
2643
+ fetchLiveRoomInfo: (options, override) => fetchLiveRoomInfo$2(options, ...resolveRequest(override)),
2644
+ fetchLiveRoomInitInfo: (options, override) => fetchLiveRoomInitInfo(options, ...resolveRequest(override)),
2645
+ fetchArticleContent: (options, override) => fetchArticleContent(options, ...resolveRequest(override)),
2646
+ fetchArticleCards: (options, override) => fetchArticleCards(options, ...resolveRequest(override)),
2647
+ fetchArticleInfo: (options, override) => fetchArticleInfo(options, ...resolveRequest(override)),
2648
+ fetchArticleListInfo: (options, override) => fetchArticleListInfo(options, ...resolveRequest(override)),
2649
+ fetchLoginStatus: (options, override) => fetchLoginStatus(options, ...resolveRequest(override)),
2650
+ requestLoginQrcode: (options, override) => requestLoginQrcode$1(options, ...resolveRequest(override)),
2651
+ checkQrcodeStatus: (options, override) => checkQrcodeStatus(options, ...resolveRequest(override)),
2652
+ requestCaptchaFromVoucher: (options, override) => requestCaptchaFromVoucher(options, ...resolveRequest(override)),
2653
+ validateCaptchaResult: (options, override) => validateCaptchaResult(options, ...resolveRequest(override)),
2654
+ convertAvToBv: (options, override) => convertAvToBv(options, ...resolveRequest(override)),
2655
+ convertBvToAv: (options, override) => convertBvToAv(options, ...resolveRequest(override)),
2656
+ fetchEmojiList: (options, override) => fetchEmojiList$3(options, ...resolveRequest(override))
2591
2657
  };
2592
2658
  }
2593
2659
  //#endregion
@@ -2614,6 +2680,7 @@ const bilibiliFetcher = {
2614
2680
  fetchCommentReplies: fetchCommentReplies$1,
2615
2681
  fetchUserCard,
2616
2682
  fetchUserDynamicList,
2683
+ fetchUserLiveStatus,
2617
2684
  fetchUserSpaceInfo,
2618
2685
  fetchUploaderTotalViews,
2619
2686
  fetchDynamicDetail,
@@ -5044,26 +5111,27 @@ async function fetchDanmakuList(options, cookie, requestConfig) {
5044
5111
  * ```
5045
5112
  */
5046
5113
  function createBoundDouyinFetcher(cookie, requestConfig) {
5114
+ const resolveRequest = (override) => resolveBoundRequest(cookie, requestConfig, override);
5047
5115
  return {
5048
- fetchVideoWork: (options, reqConfig) => fetchVideoWork$1(options, cookie, reqConfig ?? requestConfig),
5049
- fetchImageAlbumWork: (options, reqConfig) => fetchImageAlbumWork(options, cookie, reqConfig ?? requestConfig),
5050
- fetchSlidesWork: (options, reqConfig) => fetchSlidesWork(options, cookie, reqConfig ?? requestConfig),
5051
- fetchTextWork: (options, reqConfig) => fetchTextWork(options, cookie, reqConfig ?? requestConfig),
5052
- parseWork: (options, reqConfig) => parseWork(options, cookie, reqConfig ?? requestConfig),
5053
- fetchDanmakuList: (options, reqConfig) => fetchDanmakuList(options, cookie, reqConfig ?? requestConfig),
5054
- fetchWorkComments: (options, reqConfig) => fetchWorkComments$1(options, cookie, reqConfig ?? requestConfig),
5055
- fetchCommentReplies: (options, reqConfig) => fetchCommentReplies(options, cookie, reqConfig ?? requestConfig),
5056
- fetchUserProfile: (options, reqConfig) => fetchUserProfile$2(options, cookie, reqConfig ?? requestConfig),
5057
- fetchUserVideoList: (options, reqConfig) => fetchUserVideoList(options, cookie, reqConfig ?? requestConfig),
5058
- fetchUserFavoriteList: (options, reqConfig) => fetchUserFavoriteList(options, cookie, reqConfig ?? requestConfig),
5059
- fetchUserRecommendList: (options, reqConfig) => fetchUserRecommendList(options, cookie, reqConfig ?? requestConfig),
5060
- searchContent: (options, reqConfig) => searchContent(options, cookie, reqConfig ?? requestConfig),
5061
- fetchSuggestWords: (options, reqConfig) => fetchSuggestWords(options, cookie, reqConfig ?? requestConfig),
5062
- fetchMusicInfo: (options, reqConfig) => fetchMusicInfo(options, cookie, reqConfig ?? requestConfig),
5063
- fetchLiveRoomInfo: (options, reqConfig) => fetchLiveRoomInfo$1(options, cookie, reqConfig ?? requestConfig),
5064
- requestLoginQrcode: (options, reqConfig) => requestLoginQrcode(options, cookie, reqConfig ?? requestConfig),
5065
- fetchEmojiList: (options, reqConfig) => fetchEmojiList$2(options, cookie, reqConfig ?? requestConfig),
5066
- fetchDynamicEmojiList: (options, reqConfig) => fetchDynamicEmojiList(options, cookie, reqConfig ?? requestConfig)
5116
+ fetchVideoWork: (options, override) => fetchVideoWork$1(options, ...resolveRequest(override)),
5117
+ fetchImageAlbumWork: (options, override) => fetchImageAlbumWork(options, ...resolveRequest(override)),
5118
+ fetchSlidesWork: (options, override) => fetchSlidesWork(options, ...resolveRequest(override)),
5119
+ fetchTextWork: (options, override) => fetchTextWork(options, ...resolveRequest(override)),
5120
+ parseWork: (options, override) => parseWork(options, ...resolveRequest(override)),
5121
+ fetchDanmakuList: (options, override) => fetchDanmakuList(options, ...resolveRequest(override)),
5122
+ fetchWorkComments: (options, override) => fetchWorkComments$1(options, ...resolveRequest(override)),
5123
+ fetchCommentReplies: (options, override) => fetchCommentReplies(options, ...resolveRequest(override)),
5124
+ fetchUserProfile: (options, override) => fetchUserProfile$2(options, ...resolveRequest(override)),
5125
+ fetchUserVideoList: (options, override) => fetchUserVideoList(options, ...resolveRequest(override)),
5126
+ fetchUserFavoriteList: (options, override) => fetchUserFavoriteList(options, ...resolveRequest(override)),
5127
+ fetchUserRecommendList: (options, override) => fetchUserRecommendList(options, ...resolveRequest(override)),
5128
+ searchContent: (options, override) => searchContent(options, ...resolveRequest(override)),
5129
+ fetchSuggestWords: (options, override) => fetchSuggestWords(options, ...resolveRequest(override)),
5130
+ fetchMusicInfo: (options, override) => fetchMusicInfo(options, ...resolveRequest(override)),
5131
+ fetchLiveRoomInfo: (options, override) => fetchLiveRoomInfo$1(options, ...resolveRequest(override)),
5132
+ requestLoginQrcode: (options, override) => requestLoginQrcode(options, ...resolveRequest(override)),
5133
+ fetchEmojiList: (options, override) => fetchEmojiList$2(options, ...resolveRequest(override)),
5134
+ fetchDynamicEmojiList: (options, override) => fetchDynamicEmojiList(options, ...resolveRequest(override))
5067
5135
  };
5068
5136
  }
5069
5137
  //#endregion
@@ -7456,13 +7524,14 @@ const kuaishouFetcher = {
7456
7524
  * ```
7457
7525
  */
7458
7526
  function createBoundKuaishouFetcher(cookie, requestConfig) {
7527
+ const resolveRequest = (override) => resolveBoundRequest(cookie, requestConfig, override);
7459
7528
  return {
7460
- fetchVideoWork: (options, reqConfig) => fetchVideoWork(options, cookie, reqConfig ?? requestConfig),
7461
- fetchWorkComments: (options, reqConfig) => fetchWorkComments(options, cookie, reqConfig ?? requestConfig),
7462
- fetchUserProfile: (options, reqConfig) => fetchUserProfile$1(options, cookie, reqConfig ?? requestConfig),
7463
- fetchUserWorkList: (options, reqConfig) => fetchUserWorkList(options, cookie, reqConfig ?? requestConfig),
7464
- fetchLiveRoomInfo: (options, reqConfig) => fetchLiveRoomInfo(options, cookie, reqConfig ?? requestConfig),
7465
- fetchEmojiList: (options, reqConfig) => fetchEmojiList$1(options, cookie, reqConfig ?? requestConfig)
7529
+ fetchVideoWork: (options, override) => fetchVideoWork(options, ...resolveRequest(override)),
7530
+ fetchWorkComments: (options, override) => fetchWorkComments(options, ...resolveRequest(override)),
7531
+ fetchUserProfile: (options, override) => fetchUserProfile$1(options, ...resolveRequest(override)),
7532
+ fetchUserWorkList: (options, override) => fetchUserWorkList(options, ...resolveRequest(override)),
7533
+ fetchLiveRoomInfo: (options, override) => fetchLiveRoomInfo(options, ...resolveRequest(override)),
7534
+ fetchEmojiList: (options, override) => fetchEmojiList$1(options, ...resolveRequest(override))
7466
7535
  };
7467
7536
  }
7468
7537
  //#endregion
@@ -7901,14 +7970,15 @@ const xiaohongshuFetcher = {
7901
7970
  * ```
7902
7971
  */
7903
7972
  function createBoundXiaohongshuFetcher(cookie, requestConfig) {
7973
+ const resolveRequest = (override) => resolveBoundRequest(cookie, requestConfig, override);
7904
7974
  return {
7905
- fetchHomeFeed: (options = {}, reqConfig) => fetchHomeFeed(options, cookie, reqConfig ?? requestConfig),
7906
- fetchNoteDetail: (options, reqConfig) => fetchNoteDetail(options, cookie, reqConfig ?? requestConfig),
7907
- fetchNoteComments: (options, reqConfig) => fetchNoteComments(options, cookie, reqConfig ?? requestConfig),
7908
- fetchUserProfile: (options, reqConfig) => fetchUserProfile(options, cookie, reqConfig ?? requestConfig),
7909
- fetchUserNoteList: (options, reqConfig) => fetchUserNoteList(options, cookie, reqConfig ?? requestConfig),
7910
- searchNotes: (options, reqConfig) => searchNotes(options, cookie, reqConfig ?? requestConfig),
7911
- fetchEmojiList: (options, reqConfig) => fetchEmojiList(options, cookie, reqConfig ?? requestConfig)
7975
+ fetchHomeFeed: (options = {}, override) => fetchHomeFeed(options, ...resolveRequest(override)),
7976
+ fetchNoteDetail: (options, override) => fetchNoteDetail(options, ...resolveRequest(override)),
7977
+ fetchNoteComments: (options, override) => fetchNoteComments(options, ...resolveRequest(override)),
7978
+ fetchUserProfile: (options, override) => fetchUserProfile(options, ...resolveRequest(override)),
7979
+ fetchUserNoteList: (options, override) => fetchUserNoteList(options, ...resolveRequest(override)),
7980
+ searchNotes: (options, override) => searchNotes(options, ...resolveRequest(override)),
7981
+ fetchEmojiList: (options, override) => fetchEmojiList(options, ...resolveRequest(override))
7912
7982
  };
7913
7983
  }
7914
7984
  //#endregion
@@ -8670,6 +8740,10 @@ const fetchBilibili = async (data, cookie, requestConfig) => {
8670
8740
  url: bilibiliApiUrls.getUserCard({ host_mid })
8671
8741
  });
8672
8742
  }
8743
+ case "userLiveStatus": return await GlobalGetData(data.methodType, {
8744
+ ...baseRequestConfig,
8745
+ url: bilibiliApiUrls.getUserLiveStatus({ host_mid: data.host_mid })
8746
+ });
8673
8747
  case "userSpaceInfo": {
8674
8748
  const wbiSignQuery = await wbi_sign(bilibiliApiUrls.getUserSpaceInfo({ host_mid: data.host_mid }), baseRequestConfig.headers?.cookie);
8675
8749
  return await GlobalGetData(data.methodType, {
@@ -9755,6 +9829,7 @@ const BilibiliInternalMethods = {
9755
9829
  COMMENT_REPLIES: "指定评论的回复",
9756
9830
  USER_CARD: "用户主页数据",
9757
9831
  USER_DYNAMICS: "用户主页动态列表数据",
9832
+ USER_LIVE_STATUS: "用户直播状态",
9758
9833
  USER_SPACE_INFO: "用户空间详细信息",
9759
9834
  USER_TOTAL_VIEWS: "获取UP主总播放量",
9760
9835
  DYNAMIC_DETAIL: "动态详情数据",
@@ -9785,6 +9860,7 @@ const BilibiliFetcherMethods = {
9785
9860
  COMMENT_REPLIES: "fetchCommentReplies",
9786
9861
  USER_CARD: "fetchUserCard",
9787
9862
  USER_DYNAMICS: "fetchUserDynamicList",
9863
+ USER_LIVE_STATUS: "fetchUserLiveStatus",
9788
9864
  USER_SPACE_INFO: "fetchUserSpaceInfo",
9789
9865
  USER_TOTAL_VIEWS: "fetchUploaderTotalViews",
9790
9866
  DYNAMIC_DETAIL: "fetchDynamicDetail",
@@ -9893,6 +9969,7 @@ const BilibiliMethodToFetcher = {
9893
9969
  [BilibiliInternalMethods.COMMENT_REPLIES]: BilibiliFetcherMethods.COMMENT_REPLIES,
9894
9970
  [BilibiliInternalMethods.USER_CARD]: BilibiliFetcherMethods.USER_CARD,
9895
9971
  [BilibiliInternalMethods.USER_DYNAMICS]: BilibiliFetcherMethods.USER_DYNAMICS,
9972
+ [BilibiliInternalMethods.USER_LIVE_STATUS]: BilibiliFetcherMethods.USER_LIVE_STATUS,
9896
9973
  [BilibiliInternalMethods.USER_SPACE_INFO]: BilibiliFetcherMethods.USER_SPACE_INFO,
9897
9974
  [BilibiliInternalMethods.USER_TOTAL_VIEWS]: BilibiliFetcherMethods.USER_TOTAL_VIEWS,
9898
9975
  [BilibiliInternalMethods.DYNAMIC_DETAIL]: BilibiliFetcherMethods.DYNAMIC_DETAIL,
@@ -10024,6 +10101,7 @@ const BilibiliMethodMapping = {
10024
10101
  指定评论的回复: "fetchCommentReplies",
10025
10102
  用户主页数据: "fetchUserCard",
10026
10103
  用户主页动态列表数据: "fetchUserDynamicList",
10104
+ 用户直播状态: "fetchUserLiveStatus",
10027
10105
  用户空间详细信息: "fetchUserSpaceInfo",
10028
10106
  获取UP主总播放量: "fetchUploaderTotalViews",
10029
10107
  动态详情数据: "fetchDynamicDetail",
@@ -10106,6 +10184,7 @@ const BilibiliApiRoutes = {
10106
10184
  commentReplies: "/comment-replies",
10107
10185
  userCard: "/user",
10108
10186
  userDynamicList: "/user/dynamics",
10187
+ userLiveStatus: "/user/live-status",
10109
10188
  userSpaceInfo: "/user/space",
10110
10189
  uploaderTotalViews: "/user/total-views",
10111
10190
  dynamicDetail: "/dynamic",
@@ -10179,7 +10258,7 @@ function getApiRoute(platform, methodType) {
10179
10258
  * 构建后使用 __VERSION__,开发环境从 package.json 读取
10180
10259
  */
10181
10260
  const getVersion = () => {
10182
- return "6.2.0";
10261
+ return "6.4.0";
10183
10262
  };
10184
10263
  const VERSION = getVersion();
10185
10264
  /**