update 更换ocr接口密钥

This commit is contained in:
P3ngSaM 2022-05-25 09:35:07 +08:00
parent 049c6c8a96
commit 28720187f8
1 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ class UploadMaterialImpl(UploadMaterial):
"""调用身份证图片识别接口"""
url = 'http://dm-51.data.aliyun.com/rest/160601/ocr/ocr_idcard.json'
APPCODE = "6d6c3146677c40bf9e3e1e2aa73404cd"
APPCODE = "acdc6545e637469fa40c205c55af95db"
# 请求头
headers = {
@ -133,7 +133,7 @@ class UploadMaterialImpl(UploadMaterial):
def business_license_recognition():
"""调用营业执照识别接口"""
url = 'https://dm-58.data.aliyun.com/rest/160601/ocr/ocr_business_license.json'
app_code = "6d6c3146677c40bf9e3e1e2aa73404cd"
app_code = "acdc6545e637469fa40c205c55af95db"
headers = {
'Authorization': 'APPCODE %s' % app_code,