From ba924bed468cb5f1f127dcd308822f97de445dfb Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Thu, 12 Dec 2024 15:15:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=90=86=E5=89=8D=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- subpages/OCRCard/pages/index/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subpages/OCRCard/pages/index/index.vue b/subpages/OCRCard/pages/index/index.vue index 13f7e87..2be185a 100644 --- a/subpages/OCRCard/pages/index/index.vue +++ b/subpages/OCRCard/pages/index/index.vue @@ -103,7 +103,7 @@ export default { getAccessToken(path, ress) { let self = this uni.request({ - url: 'https://aip.baidubce.com/oauth/2.0/token',//生产https://aip.baidubce.com/oauth/2.0/token 测试 /api/oauth/2.0/token + url: '/api-proxy/oauth/2.0/token',//生产https://aip.baidubce.com/oauth/2.0/token 测试 /api/oauth/2.0/token data: { grant_type: 'client_credentials', client_id: self.dataObj.client_id, @@ -126,7 +126,7 @@ export default { uploadImage(path, token, ress) { let self = this uni.request({ - url: 'https://aip.baidubce.com/rest/2.0/ocr/v1/idcard',//生产https://aip.baidubce.com/rest/2.0/ocr/v1/idcard 测试 /api/rest/2.0/ocr/v1/idcard + url: '/api-proxy/rest/2.0/ocr/v1/idcard',//生产https://aip.baidubce.com/rest/2.0/ocr/v1/idcard 测试 /api/rest/2.0/ocr/v1/idcard data: { image: path, access_token: token,