import{_ as s,c as a,a as n,o as l}from"./app-CDdN0tOz.js";const e={};function o(d,t){return l(),a("div",null,t[0]||(t[0]=[n(`<h1 id="基本信息" tabindex="-1"><a class="header-anchor" href="#基本信息"><span>基本信息</span></a></h1><h2 id="获取用户钱包" tabindex="-1"><a class="header-anchor" href="#获取用户钱包"><span>获取用户钱包</span></a></h2><blockquote><p>https://pay.bilibili.com/paywallet/wallet/getUserWallet</p></blockquote><p><em>请求方法: POST</em></p><p>认证方式: Cookie (SESSDATA) (注意 <code>,</code> <code>*</code> 需要 URL 转义)</p><p><strong>正文参数 (application/json):</strong></p><table><thead><tr><th>参数名</th><th>类型</th><th>内容</th><th>必要性</th><th>备注</th></tr></thead><tbody><tr><td>panelType</td><td>num</td><td>面板类型</td><td>不必要</td><td>默认为 3</td></tr><tr><td>platformType</td><td>num</td><td>平台类型</td><td>必要</td><td>任意有效数字, 默认为 3</td></tr><tr><td>timestamp</td><td>num</td><td>当前时间</td><td>不必要</td><td>UNIX 毫秒时间戳</td></tr><tr><td>traceId</td><td>num</td><td>追踪 ID</td><td>不必要</td><td>与 timestamp 值相同</td></tr><tr><td>version</td><td>str</td><td>版本</td><td>不必要</td><td>默认 <code>1.0</code></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>num</td><td>返回值</td><td>0: 成功<br>8006000004: 缺参<br>别的错误码在 errno</td></tr><tr><td>errno</td><td>num</td><td>错误码</td><td>8006000004: 缺参<br>800501008: 内部错误(传的不是JSON)<br>800501007: 用户未登录</td></tr><tr><td>msg</td><td>str</td><td>返回信息</td><td>SUCCESS: 成功<br>否则为错误信息</td></tr><tr><td>showMsg</td><td>str</td><td>显示信息</td><td>成功时为空</td></tr><tr><td>data</td><td>obj</td><td>数据本体</td><td></td></tr><tr><td>success</td><td>bool</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>mid</td><td>num</td><td>用户 mid</td><td></td></tr><tr><td>totalBp</td><td>num</td><td>总计 B 币</td><td></td></tr><tr><td>defaultBp</td><td>num</td><td>默认 B 币?</td><td></td></tr><tr><td>iosBp</td><td>num</td><td>iOS B 币?</td><td></td></tr><tr><td>couponBalance</td><td>num</td><td>优惠券余额</td><td></td></tr><tr><td>availableBp</td><td>num</td><td>可用 B 币</td><td></td></tr><tr><td>unavailableBp</td><td>num</td><td>不可用 B 币</td><td></td></tr><tr><td>unavailableReason</td><td>str</td><td>不可用原因</td><td></td></tr><tr><td>tip</td><td>str</td><td>请XXXXX</td><td>请投币??</td></tr><tr><td>needShowClassBalance</td><td>num</td><td>需要显示类余额??</td><td>1</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;"> -X</span><span style="color:#CE9178;"> POST</span><span style="color:#CE9178;"> &#39;https://pay.bilibili.com/paywallet/wallet/getUserWallet&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#D4D4D4;">--data-raw </span><span style="color:#CE9178;">&#39;{&quot;platformType&quot;:&quot;3&quot;}&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#D4D4D4;">-H </span><span style="color:#CE9178;">&#39;content-type: application/json&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#D4D4D4;">-b </span><span style="color:#CE9178;">&#39;SESSDATA=xxx&#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></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;errno&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;msg&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;SUCCESS&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;showMsg&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;data&quot;</span><span style="color:#D4D4D4;">: {</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;mid&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">616368979</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;totalBp&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0.00</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;defaultBp&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0.00</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;iosBp&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0.00</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;couponBalance&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;availableBp&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0.00</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;unavailableBp&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;unavailableReason&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;tip&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;请XXXXX&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;needShowClassBalance&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">1</span></span>
<span class="line"><span style="color:#D4D4D4;">  },</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;success&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#569CD6;">true</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></div></details>`,15)]))}const r=s(e,[["render",o]]),c=JSON.parse('{"path":"/docs/wallet/info.html","title":"基本信息","lang":"zh-CN","frontmatter":{},"git":{"updatedTime":1744647224000,"contributors":[{"name":"SessionHu","username":"SessionHu","email":"102411014+SessionHu@users.noreply.github.com","commits":2,"url":"https://github.com/SessionHu"}],"changelog":[{"hash":"0a3c04ae2d3bc3db7261f2a74660289633ab7a3a","time":1744647224000,"email":"102411014+SessionHu@users.noreply.github.com","author":"SessionHu","message":"fix(wallet/info.md): typo"},{"hash":"60a0c5d1a2f44fe61335da04571305fa7727a968","time":1724238159000,"email":"102411014+SessionHu@users.noreply.github.com","author":"Session小胡","message":"feat: 各种接口补充与错误修正 (#1066)"}]},"filePathRelative":"docs/wallet/info.md"}');export{r as comp,c as data};
