From 378eeda6d4276d329b5dc3f36b35e51a2bbd2ae8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A2=81=E5=B8=85?= Date: Thu, 25 Aug 2022 16:08:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E8=84=B8=E6=9C=8D=E5=8A=A1=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=90=8D=E8=B0=83=E6=95=B4=EF=BC=8C=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E8=B0=B7=E6=AD=8C=E4=B8=8B=E7=82=B9=E5=87=BB=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E8=BF=9B=E8=A1=8C=E8=AF=86=E5=88=AB=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/userformal/login/index.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/pages/userformal/login/index.tsx b/src/pages/userformal/login/index.tsx index 49aa399..918f5cc 100644 --- a/src/pages/userformal/login/index.tsx +++ b/src/pages/userformal/login/index.tsx @@ -216,7 +216,7 @@ const Index: React.FC<{}> = () => { canvas.toBlob(function (result:any) { var formData = new FormData(); formData.append('multipartFiles', result, 'upload_face.jpeg'); - const url = 'http://127.0.0.1:8081/outer/v1.0/stock/logicStock/importStockDepotRelation'; + const url = 'http://127.0.0.1:8081/outer/v1/ebtp/face/faceCompare'; window.fetch(url,{ method:'post', mode:'cors', @@ -241,7 +241,7 @@ const Index: React.FC<{}> = () => { }); }else{ setSping(true); - const url = 'http://127.0.0.1:8081/outer/v1.0/stock/logicStock/rgbArray2Base64'; + const url = 'http://127.0.0.1:8081/outer/v1/ebtp/face/rgbArray2Base64'; window.fetch(url,{ method:'post', body : JSON.stringify({//post请求参数 @@ -252,8 +252,7 @@ const Index: React.FC<{}> = () => { //base64图片进行人脸比对 var formData = new FormData(); formData.append('multipartFiles', base64ToBlob( 'data:image/jpg;base64,' + res.data), 'upload_face.jpeg'); - console.log(3); - const url2 = 'http://127.0.0.1:8081/outer/v1.0/stock/logicStock/importStockDepotRelation'; + const url2 = 'http://127.0.0.1:8081/outer/v1/ebtp/face/faceCompare'; window.fetch(url2,{ method:'post', mode:'cors', @@ -395,7 +394,7 @@ const Index: React.FC<{}> = () => { {!whetherIE.current ? ():()} -