提交 be1a8f04 编写于 作者: 晚风拂柳颜's avatar 晚风拂柳颜

更新controllers/parse.py

上级 7141746f
...@@ -25,7 +25,7 @@ class R(object): ...@@ -25,7 +25,7 @@ class R(object):
header = { header = {
"user-agent": "Mozilla/5.0" "user-agent": "Mozilla/5.0"
} }
if 'bilivideo.com' in url: if 'bilivideo.c' in url:
header.update({ header.update({
'referer':'https://www.bilibili.com/' 'referer':'https://www.bilibili.com/'
}) })
...@@ -151,4 +151,4 @@ def base64_ocr(): ...@@ -151,4 +151,4 @@ def base64_ocr():
code = ocr.classification(img_bytes) code = ocr.classification(img_bytes)
resp = R.success('识别成功',code) resp = R.success('识别成功',code)
print(resp.json) print(resp.json)
return resp return resp
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册