import{_ as d,c as p,a as o,b as s,d as t,e as a,w as e,r,o as i}from"./app-CDdN0tOz.js";const u={};function c(D,l){const n=r("RouteLink");return i(),p("div",null,[l[39]||(l[39]=o(`<h1 id="获取最新-app-版本" tabindex="-1"><a class="header-anchor" href="#获取最新-app-版本"><span>获取最新 APP 版本</span></a></h1><h2 id="获取版本信息" tabindex="-1"><a class="header-anchor" href="#获取版本信息"><span>获取版本信息</span></a></h2><blockquote><p>https://app.bilibili.com/x/v2/version</p></blockquote><p><em>请求方法: GET</em></p><p><strong>URL参数:</strong></p><table><thead><tr><th>参数名</th><th>类型</th><th>内容</th><th>必要性</th><th>备注</th></tr></thead><tbody><tr><td>mobi_app</td><td>str</td><td>目标客户端类型</td><td>不必要</td><td>留空为最新有更新的平台<br>android: Android 版<br>iphone: iPhone 版<br>ipad: iPad HD 版<br>win: UWP 版<br>android_tv_yst: TV 版<br>android_car: 车机版<br>pc_client: PC 客户端</td></tr></tbody></table><p><strong>JSON回复:</strong></p><p>根对象:</p><table><thead><tr><th>字段</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>code</td><td>int</td><td>返回值</td><td>0: 成功</td></tr><tr><td>message</td><td>str</td><td>错误信息</td><td>默认为 <code>0</code></td></tr><tr><td>ttl</td><td>int</td><td>1</td><td></td></tr><tr><td>data</td><td>array</td><td>版本信息列表</td><td></td></tr></tbody></table><p><code>data</code> 数组中的对象:</p><table><thead><tr><th>字段</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>plat</td><td>int</td><td>平台</td><td>0: Android<br>1: iPhone<br>2: iPad HD<br>3: UWP<br>12: TV 版<br>35: 车机版<br>40: PC 客户端</td></tr><tr><td>desc</td><td>str</td><td>版本描述</td><td></td></tr><tr><td>version</td><td>str</td><td>版本号</td><td></td></tr><tr><td>build</td><td>int</td><td>内部版本号</td><td></td></tr></tbody></table><p><strong>示例:</strong></p><div class="language-shell line-numbers-mode" data-highlighter="shiki" data-ext="shell" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-shell"><span class="line"><span style="color:#DCDCAA;">curl</span><span style="color:#569CD6;"> -G</span><span style="color:#CE9178;"> &#39;https://app.bilibili.com/x/v2/version&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#D4D4D4;">--url-query</span><span style="color:#CE9178;">&#39;mobi_app=android&#39;</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div></div></div><details><summary>查看响应示例:</summary><div class="language-json line-numbers-mode" data-highlighter="shiki" data-ext="json" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-json"><span class="line"><span style="color:#D4D4D4;">{</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;code&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;message&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;0&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;ttl&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">1</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;data&quot;</span><span style="color:#D4D4D4;">: [</span></span>
<span class="line"><span style="color:#D4D4D4;">    {</span></span>
<span class="line"><span style="color:#9CDCFE;">      &quot;plat&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">      &quot;desc&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;-修复了一些bug，切了个大西瓜~&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">      &quot;version&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;8.9.0&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">      &quot;build&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">8090300</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">      &quot;ptime&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">1723612377</span></span>
<span class="line"><span style="color:#D4D4D4;">    },</span></span>
<span class="line"><span style="color:#6A9955;">    // ...</span></span>
<span class="line"><span style="color:#D4D4D4;">    {</span></span>
<span class="line"><span style="color:#9CDCFE;">      &quot;plat&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">      &quot;desc&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;[修正]横屏状态下,视频列表加载失败的问题</span><span style="color:#D7BA7D;">\\n</span><span style="color:#CE9178;">[修正]超过48kHz采样率的音频无法播放的问题</span><span style="color:#D7BA7D;">\\n</span><span style="color:#CE9178;">[修正]部分系统黑屏的问题</span><span style="color:#D7BA7D;">\\n</span><span style="color:#CE9178;">PS:帮下面的同学祈祷早日上架&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">      &quot;version&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;2.0.4&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">      &quot;build&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">      &quot;ptime&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">1382630400</span></span>
<span class="line"><span style="color:#D4D4D4;">    }</span></span>
<span class="line"><span style="color:#D4D4D4;">  ]</span></span>
<span class="line"><span style="color:#D4D4D4;">}</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div></details><h2 id="版本升级" tabindex="-1"><a class="header-anchor" href="#版本升级"><span>版本升级</span></a></h2><blockquote><p>https://app.bilibili.com/x/v2/version/fawkes/upgrade</p></blockquote><p><em>请求方式: GET</em></p>`,17)),s("p",null,[l[1]||(l[1]=t("鉴权方式（非必须）：")),a(n,{to:"/docs/misc/sign/APP.html"},{default:e(()=>l[0]||(l[0]=[t("APP API 签名与鉴权")])),_:1,__:[0]})]),l[40]||(l[40]=s("p",null,[s("strong",null,"URL参数:")],-1)),s("table",null,[l[23]||(l[23]=s("thead",null,[s("tr",null,[s("th",null,"参数名"),s("th",null,"类型"),s("th",null,"内容"),s("th",null,"必要性"),s("th",null,"备注")])],-1)),s("tbody",null,[l[8]||(l[8]=s("tr",null,[s("td",null,"abi"),s("td",null,"str"),s("td",null,"设备 CPU ABI"),s("td",null,"不必要"),s("td",null,[t("如 "),s("code",null,"arm64-v8a")])],-1)),l[9]||(l[9]=s("tr",null,[s("td",null,"appid"),s("td",null,"str"),s("td",null,"客户端类型"),s("td",null,"不必要"),s("td",null,[t("如 "),s("code",null,"tv.danmaku.bili")])],-1)),l[10]||(l[10]=s("tr",null,[s("td",null,"brand"),s("td",null,"str"),s("td",null,"设备品牌"),s("td",null,"不必要"),s("td",null,[t("如 "),s("code",null,"google")])],-1)),l[11]||(l[11]=s("tr",null,[s("td",null,"build"),s("td",null,"int"),s("td",null,"当前 APP 版本号"),s("td",null,"必要"),s("td",null,[t("如 "),s("code",null,"8000200")])],-1)),l[12]||(l[12]=s("tr",null,[s("td",null,"channel"),s("td",null,"str"),s("td",null,"APP 分发渠道"),s("td",null,"必要"),s("td",null,[t("如 "),s("code",null,"master")])],-1)),s("tr",null,[l[4]||(l[4]=s("td",null,"deviceid",-1)),l[5]||(l[5]=s("td",null,"str",-1)),l[6]||(l[6]=s("td",null,"设备唯一 ID",-1)),l[7]||(l[7]=s("td",null,"不必要",-1)),s("td",null,[l[3]||(l[3]=t("即 XU-Prefixed BUVID，见 ")),a(n,{to:"/docs/misc/device_identity.html"},{default:e(()=>l[2]||(l[2]=[t("device_identity")])),_:1,__:[2]})])]),l[13]||(l[13]=s("tr",null,[s("td",null,"env"),s("td",null,"str"),s("td",null,"APP 分发环境"),s("td",null,"不必要"),s("td",null,[t("默认 "),s("code",null,"prod")])],-1)),l[14]||(l[14]=s("tr",null,[s("td",null,"iv"),s("td",null,"int"),s("td",null,"当前 APP innerVer"),s("td",null,"不必要"),s("td",null,[t("如 "),s("code",null,"8000210")])],-1)),l[15]||(l[15]=s("tr",null,[s("td",null,"mobi_app"),s("td",null,"str"),s("td",null,"APP mobi_app"),s("td",null,"必要"),s("td",null,[t("如 "),s("code",null,"android")])],-1)),l[16]||(l[16]=s("tr",null,[s("td",null,"model"),s("td",null,"str"),s("td",null,"设备型号"),s("td",null,"不必要"),s("td",null,[t("如 "),s("code",null,"Pixel 2 XL")])],-1)),l[17]||(l[17]=s("tr",null,[s("td",null,"nt"),s("td",null,"str"),s("td",null,"-"),s("td",null,"必要"),s("td",null,[t("默认 "),s("code",null,"1")])],-1)),l[18]||(l[18]=s("tr",null,[s("td",null,"ov"),s("td",null,"str"),s("td",null,"设备 OS 版本"),s("td",null,"必要"),s("td",null,[t("安卓即 API Level，如 Android 11 为 "),s("code",null,"30")])],-1)),l[19]||(l[19]=s("tr",null,[s("td",null,"platform"),s("td",null,"str"),s("td",null,"设备平台"),s("td",null,"不必要"),s("td",null,[t("如 "),s("code",null,"android")])],-1)),l[20]||(l[20]=s("tr",null,[s("td",null,"screen"),s("td",null,"str"),s("td",null,"设备屏幕参数"),s("td",null,"不必要"),s("td",null,[t("如 "),s("code",null,"2712_1440@537.882_537.882")])],-1)),l[21]||(l[21]=s("tr",null,[s("td",null,"sn"),s("td",null,"int"),s("td",null,"当前 APP SN"),s("td",null,"必要"),s("td",null,[t("如 "),s("code",null,"15088473")])],-1)),l[22]||(l[22]=s("tr",null,[s("td",null,"vn"),s("td",null,"str"),s("td",null,"当前 APP 版本名称"),s("td",null,"必要"),s("td",null,[t("如 "),s("code",null,"8.0.0")])],-1))])]),l[41]||(l[41]=s("p",null,[s("strong",null,"标头参数（Headers）：")],-1)),s("table",null,[l[38]||(l[38]=s("thead",null,[s("tr",null,[s("th",null,"参数名"),s("th",null,"类型"),s("th",null,"内容"),s("th",null,"必要性"),s("th",null,"备注")])],-1)),s("tbody",null,[s("tr",null,[l[28]||(l[28]=s("td",null,"app-key",-1)),l[29]||(l[29]=s("td",null,"str",-1)),l[30]||(l[30]=s("td",null,"APPKey 名称",-1)),l[31]||(l[31]=s("td",null,"必要",-1)),s("td",null,[l[25]||(l[25]=t("大体等同于 ")),a(n,{to:"/docs/misc/sign/APPKey.html"},{default:e(()=>l[24]||(l[24]=[s("code",null,"mobi_app",-1)])),_:1,__:[24]}),l[26]||(l[26]=t("。特别地：64 位版本粉版客户端应为 ")),l[27]||(l[27]=s("code",null,"android64",-1))])]),s("tr",null,[l[34]||(l[34]=s("td",null,"buvid",-1)),l[35]||(l[35]=s("td",null,"str",-1)),l[36]||(l[36]=s("td",null,"BUVID",-1)),l[37]||(l[37]=s("td",null,"必要",-1)),s("td",null,[l[33]||(l[33]=t("XU-Prefixed BUVID，见 ")),a(n,{to:"/docs/misc/device_identity.html"},{default:e(()=>l[32]||(l[32]=[t("device_identity")])),_:1,__:[32]})])])])]),l[42]||(l[42]=o(`<p><strong>JSON回复:</strong></p><p>根对象:</p><table><thead><tr><th>字段</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>code</td><td>int</td><td>返回值</td><td>0: 成功<br>-304: 木有改动<br>-400: 请求异常</td></tr><tr><td>message</td><td>str</td><td>错误信息</td><td>默认为 <code>0</code></td></tr><tr><td>ttl</td><td>int</td><td>1</td><td></td></tr><tr><td>data</td><td>obj</td><td>信息本体</td><td></td></tr></tbody></table><p><code>data</code> 对象:</p><table><thead><tr><th>字段</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>title</td><td>str</td><td>标题</td><td></td></tr><tr><td>content</td><td>str</td><td>内容</td><td></td></tr><tr><td>version</td><td>str</td><td>最新版本名称</td><td></td></tr><tr><td>version_code</td><td>int</td><td>最新版本号</td><td>即 <code>build</code></td></tr><tr><td>url</td><td>str</td><td>下载地址</td><td></td></tr><tr><td>size</td><td>int</td><td>大小</td><td>单位字节</td></tr><tr><td>md5</td><td>str</td><td>MD5 值</td><td></td></tr><tr><td>silent</td><td>int</td><td>是否静默安装?</td><td></td></tr><tr><td>upgrade_type</td><td>int</td><td>升级类型?</td><td></td></tr><tr><td>cycle</td><td>int</td><td>升级周期?</td><td></td></tr><tr><td>policy</td><td>int</td><td>升级策略?</td><td></td></tr><tr><td>policy_url</td><td>str</td><td>升级策略链接?</td><td></td></tr><tr><td>ptime</td><td>int</td><td>发布时间</td><td></td></tr></tbody></table><p><strong>示例:</strong></p><div class="language-shell line-numbers-mode" data-highlighter="shiki" data-ext="shell" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-shell"><span class="line"><span style="color:#DCDCAA;">curl</span><span style="color:#569CD6;"> -G</span><span style="color:#CE9178;"> &#39;https://app.bilibili.com/x/v2/version/fawkes/upgrade&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#D4D4D4;">--url-query </span><span style="color:#CE9178;">&#39;build=1145141&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#D4D4D4;">--url-query </span><span style="color:#CE9178;">&#39;channel=apt&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#D4D4D4;">--url-query </span><span style="color:#CE9178;">&#39;mobi_app=android&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#D4D4D4;">--url-query </span><span style="color:#CE9178;">&#39;nt=awa&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#D4D4D4;">--url-query </span><span style="color:#CE9178;">&#39;ov=qwq&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#D4D4D4;">--url-query </span><span style="color:#CE9178;">&#39;platform=archlinux&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#D4D4D4;">--url-query </span><span style="color:#CE9178;">&#39;sn=919810&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#D4D4D4;">--url-query </span><span style="color:#CE9178;">&#39;vn=!!!&#39;</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><details><summary>查看响应示例:</summary><div class="language-json line-numbers-mode" data-highlighter="shiki" data-ext="json" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-json"><span class="line"><span style="color:#D4D4D4;">{</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;code&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;message&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;0&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;ttl&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">1</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;data&quot;</span><span style="color:#D4D4D4;">: {</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;title&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;升级提醒&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;content&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;-修复了一些bug，并吃了一桶冰淇凌~</span><span style="color:#D7BA7D;">\\n</span><span style="color:#CE9178;">-记得检查暑假作业哦！&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;version&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;8.10.0&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;version_code&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">8100300</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;url&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;https://dl.hdslb.com/mobile/pack/android64/15793300/iBiliPlayer-apinkRelease-8.10.0-b15793300.apk&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;size&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">132432843</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;md5&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;f196c0ea68ff894dab0cf380cafad802&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;silent&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;upgrade_type&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">1</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;cycle&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">4</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;policy&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;policy_url&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;is_gray&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;ptime&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">1724207041</span></span>
<span class="line"><span style="color:#D4D4D4;">    }</span></span>
<span class="line"><span style="color:#D4D4D4;">}</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div></details><h2 id="拼接最新版本下载地址" tabindex="-1"><a class="header-anchor" href="#拼接最新版本下载地址"><span>拼接最新版本下载地址</span></a></h2><blockquote><p>https://api.bilibili.com/x/web-frontend/getappversion</p></blockquote><p><em>请求方法: GET</em></p><p><strong>URL参数:</strong></p><table><thead><tr><th>参数名</th><th>类型</th><th>内容</th><th>必要性</th><th>备注</th></tr></thead><tbody><tr><td>target</td><td>string</td><td>目标平台</td><td>目测仅 <code>pc_electron</code>, 错误的值会导致返回 <code>HTTP 404</code></td><td></td></tr><tr><td>cdn_url</td><td>string</td><td>CDN URL</td><td>任意字符串, 默认 <code>https://dl.hdslb.com/mobile/fixed/bili_win/bili_win-install.exe</code></td><td></td></tr></tbody></table><p><strong>JSON回复:</strong></p><p>根对象:</p><table><thead><tr><th>字段</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>code</td><td>number</td><td>返回值</td><td>0: 成功<br>-1: need target</td></tr><tr><td>message</td><td>string</td><td>错误消息</td><td>成功时无此项</td></tr></tbody></table><p><code>data</code> 对象:</p><table><thead><tr><th>字段</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>cdn_url</td><td>string</td><td>CDN URL</td><td>内容同请求参数 <code>cdn_url</code></td></tr><tr><td>sole_cdn_url</td><td>string</td><td>带版本的 CDN URL</td><td><code>cdn_url + &quot;?v=&quot; + 最新版本</code></td></tr></tbody></table><p><strong>示例:</strong></p><div class="language-shell line-numbers-mode" data-highlighter="shiki" data-ext="shell" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-shell"><span class="line"><span style="color:#DCDCAA;">curl</span><span style="color:#569CD6;"> -G</span><span style="color:#CE9178;"> &#39;https://api.bilibili.com/x/web-frontend/getappversion&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#D4D4D4;">--url-query </span><span style="color:#CE9178;">&#39;target=pc_electron&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#D4D4D4;">--url-query </span><span style="color:#CE9178;">&#39;cdn_url=https://dl.hdslb.com/mobile/fixed/bili_win/bili_win-install.exe&#39;</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><details><summary>查看响应示例:</summary><div class="language-json line-numbers-mode" data-highlighter="shiki" data-ext="json" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-json"><span class="line"><span style="color:#D4D4D4;">{</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;code&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;data&quot;</span><span style="color:#D4D4D4;">: {</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;cdn_url&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;https://dl.hdslb.com/mobile/fixed/bili_win/bili_win-install.exe&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;sole_cdn_url&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;https://dl.hdslb.com/mobile/fixed/bili_win/bili_win-install.exe?v=1.16.1-2&quot;</span></span>
<span class="line"><span style="color:#D4D4D4;">  }</span></span>
<span class="line"><span style="color:#D4D4D4;">}</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div></details>`,21))])}const b=d(u,[["render",c]]),m=JSON.parse('{"path":"/docs/APP_widget/ver.html","title":"获取最新 APP 版本","lang":"zh-CN","frontmatter":{},"git":{"updatedTime":1738915174000,"contributors":[{"name":"SessionHu","username":"SessionHu","email":"102411014+SessionHu@users.noreply.github.com","commits":4,"url":"https://github.com/SessionHu"},{"name":"cxw620","username":"cxw620","email":"70561268+cxw620@users.noreply.github.com","commits":1,"url":"https://github.com/cxw620"},{"name":"SocialSisterYi","username":"SocialSisterYi","email":"45892418+SocialSisterYi@users.noreply.github.com","commits":1,"url":"https://github.com/SocialSisterYi"}],"changelog":[{"hash":"c5f86789103bb308326683b3da56256b99a55b6a","time":1738915174000,"email":"102411014+SessionHu@users.noreply.github.com","author":"SessionHu","message":"chore: ignore .swp file &#x26; add missing comment"},{"hash":"e7bfe392b7ba170df681186a03cd6424250f7d92","time":1738905857000,"email":"102411014+SessionHu@users.noreply.github.com","author":"SessionHu","message":"feat(APP_widget/ver.md): getappversion"},{"hash":"1e24c6b1889160c4c35c01416aa4239501accf5f","time":1726759053000,"email":"102411014+SessionHu@users.noreply.github.com","author":"Session小胡","message":"调整部分接口描述与错误修复 (#1088)","coAuthors":[{"name":"社会易姐QwQ","email":"45892418+SocialSisterYi@users.noreply.github.com"}]},{"hash":"2dbdcd884d782891f3d8e9ece37a4c8d18c8298e","time":1726758507000,"email":"70561268+cxw620@users.noreply.github.com","author":"陈寒彤","message":"fix(APP_widget/ver.md): fix wrong desc and add details (#1090)"},{"hash":"60a0c5d1a2f44fe61335da04571305fa7727a968","time":1724238159000,"email":"102411014+SessionHu@users.noreply.github.com","author":"Session小胡","message":"feat: 各种接口补充与错误修正 (#1066)"}]},"filePathRelative":"docs/APP_widget/ver.md"}');export{b as comp,m as data};
