mirror of
https://github.com/xfgryujk/blivechat.git
synced 2024-12-26 04:41:40 +08:00
补充注意事项链接
This commit is contained in:
parent
df29586b7d
commit
a426adde65
@ -62,7 +62,7 @@ async def request_open_live_or_common_server(open_live_url, common_server_url, b
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
req_ctx_mgr = utils.request.http_session.post(common_server_url, json=body)
|
req_ctx_mgr = utils.request.http_session.post(common_server_url, json=body)
|
||||||
return await _read_response(req_ctx_mgr)
|
return await _read_response(req_ctx_mgr, is_common_server=True)
|
||||||
except TransportError:
|
except TransportError:
|
||||||
logger.exception('Request common server failed:')
|
logger.exception('Request common server failed:')
|
||||||
raise
|
raise
|
||||||
@ -126,14 +126,14 @@ async def request_open_live(url, body: dict, *, ignore_rate_limit=False) -> dict
|
|||||||
raise
|
raise
|
||||||
|
|
||||||
|
|
||||||
async def _read_response(req_ctx_mgr: AsyncContextManager[aiohttp.ClientResponse]) -> dict:
|
async def _read_response(req_ctx_mgr: AsyncContextManager[aiohttp.ClientResponse], is_common_server=False) -> dict:
|
||||||
try:
|
try:
|
||||||
async with req_ctx_mgr as r:
|
async with req_ctx_mgr as r:
|
||||||
r.raise_for_status()
|
r.raise_for_status()
|
||||||
data = await r.json()
|
data = await r.json()
|
||||||
code = data['code']
|
code = data['code']
|
||||||
if code != 0:
|
if code != 0:
|
||||||
if code == 7010:
|
if code == 7010 and not is_common_server:
|
||||||
data['message'] += (
|
data['message'] += (
|
||||||
' 解决方法:https://github.com/xfgryujk/blivechat/wiki/%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9%E5'
|
' 解决方法:https://github.com/xfgryujk/blivechat/wiki/%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9%E5'
|
||||||
'%92%8C%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98#%E6%8A%A5%E9%94%997010-%E8%B6%85%E8%BF%87%E4%B8%8'
|
'%92%8C%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98#%E6%8A%A5%E9%94%997010-%E8%B6%85%E8%BF%87%E4%B8%8'
|
||||||
|
@ -12,8 +12,8 @@
|
|||||||
<p>{{ $t('help.p5') }}</p>
|
<p>{{ $t('help.p5') }}</p>
|
||||||
<p class="img-container large-img"><el-image fit="scale-down" src="/static/img/tutorial/tutorial-5.png"></el-image></p>
|
<p class="img-container large-img"><el-image fit="scale-down" src="/static/img/tutorial/tutorial-5.png"></el-image></p>
|
||||||
<p><br><br><br><br><br><br><br><br>--------------------------------------------------------------------------------------------------------</p>
|
<p><br><br><br><br><br><br><br><br>--------------------------------------------------------------------------------------------------------</p>
|
||||||
|
<p>使用前必看:<a href="https://github.com/xfgryujk/blivechat/wiki/%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9%E5%92%8C%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98" target="_blank">注意事项和常见问题</a></p>
|
||||||
<p>喜欢的话可以推荐给别人 _(:з」∠)_</p>
|
<p>喜欢的话可以推荐给别人 _(:з」∠)_</p>
|
||||||
<p>如果需要使用翻译功能,建议看<a href="https://www.bilibili.com/read/cv14663633" target="_blank">配置官方翻译接口傻瓜式教程</a>。注意必须下载到本地才能改后台配置,本地使用方法看<a href="https://github.com/xfgryujk/blivechat#%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95" target="_blank">项目地址中的使用方法说明</a></p>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user