update 更换ocr接口密钥
This commit is contained in:
parent
049c6c8a96
commit
28720187f8
|
@ -51,7 +51,7 @@ class UploadMaterialImpl(UploadMaterial):
|
||||||
"""调用身份证图片识别接口"""
|
"""调用身份证图片识别接口"""
|
||||||
|
|
||||||
url = 'http://dm-51.data.aliyun.com/rest/160601/ocr/ocr_idcard.json'
|
url = 'http://dm-51.data.aliyun.com/rest/160601/ocr/ocr_idcard.json'
|
||||||
APPCODE = "6d6c3146677c40bf9e3e1e2aa73404cd"
|
APPCODE = "acdc6545e637469fa40c205c55af95db"
|
||||||
|
|
||||||
# 请求头
|
# 请求头
|
||||||
headers = {
|
headers = {
|
||||||
|
@ -133,7 +133,7 @@ class UploadMaterialImpl(UploadMaterial):
|
||||||
def business_license_recognition():
|
def business_license_recognition():
|
||||||
"""调用营业执照识别接口"""
|
"""调用营业执照识别接口"""
|
||||||
url = 'https://dm-58.data.aliyun.com/rest/160601/ocr/ocr_business_license.json'
|
url = 'https://dm-58.data.aliyun.com/rest/160601/ocr/ocr_business_license.json'
|
||||||
app_code = "6d6c3146677c40bf9e3e1e2aa73404cd"
|
app_code = "acdc6545e637469fa40c205c55af95db"
|
||||||
|
|
||||||
headers = {
|
headers = {
|
||||||
'Authorization': 'APPCODE %s' % app_code,
|
'Authorization': 'APPCODE %s' % app_code,
|
||||||
|
|
Loading…
Reference in New Issue