From c484a45822ac1e4f0780b1957339e8c09672f1ba Mon Sep 17 00:00:00 2001 From: qitz <18810291185@163.com> Date: Wed, 27 Sep 2023 15:17:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=AB=8B=E6=A1=88=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/IdentityAuthenticationServiceImpl.java | 14 +++++++------- .../mapper/wisdomarbitrate/CaseAttachMapper.xml | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/IdentityAuthenticationServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/IdentityAuthenticationServiceImpl.java index 5a594e9..08ca024 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/IdentityAuthenticationServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/IdentityAuthenticationServiceImpl.java @@ -65,17 +65,17 @@ public class IdentityAuthenticationServiceImpl implements IdentityAuthenticatio IdentityAuthentication identityAuthentication = new IdentityAuthentication(); try{ // Credential credIdenAuth = new Credential(SECRET_ID, SECRET_KEY); - Credential credIdenAuth = new Credential(credentialSecretId, credentialSecretKey); + Credential authenti = new Credential(credentialSecretId, credentialSecretKey); HttpProfile httpProfileIdenAuth = new HttpProfile(); httpProfileIdenAuth.setEndpoint("faceid.tencentcloudapi.com"); - ClientProfile clientProfileIdenAuth = new ClientProfile(); - clientProfileIdenAuth.setHttpProfile(httpProfileIdenAuth); - FaceidClient clientIdenAuth = new FaceidClient(credIdenAuth, "", clientProfileIdenAuth); + ClientProfile clientInv= new ClientProfile(); + clientInv.setHttpProfile(httpProfileIdenAuth); + FaceidClient clientIdenAuth = new FaceidClient(authenti, "", clientInv); // 实例化一个请求对象 - GetEidTokenRequest reqIdenAuth = new GetEidTokenRequest(); + GetEidTokenRequest reqest = new GetEidTokenRequest(); //设置请求参数 - reqIdenAuth.setMerchantId(merchantId); - GetEidTokenResponse respIdenAuth = clientIdenAuth.GetEidToken(reqIdenAuth); + reqest.setMerchantId(merchantId); + GetEidTokenResponse respIdenAuth = clientIdenAuth.GetEidToken(reqest); String respJSON = GetEidTokenResponse.toJsonString(respIdenAuth); JSONObject objJSON = JSON.parseObject(respJSON); JSONObject objJSONRes = (JSONObject) objJSON.get("Response"); diff --git a/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseAttachMapper.xml b/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseAttachMapper.xml index b3e38a0..5b9b821 100644 --- a/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseAttachMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseAttachMapper.xml @@ -46,7 +46,7 @@ update case_attach set case_appli_id= #{caseAppliId} - where annexId = #{annex_id} + where annex_id = #{annexId}