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

更新controllers/parse.py

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