优化腾讯人脸核身相关接口

This commit is contained in:
gy b
2023-10-11 12:21:09 +08:00
parent 4b8a127cd2
commit 9aa2ff00eb
4 changed files with 85 additions and 107 deletions
@@ -1,5 +1,6 @@
package com.ruoyi.web.controller.wisdomarbitrate;
import com.alibaba.fastjson.JSONObject;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
@@ -19,27 +20,27 @@ public class IdentityAuthenticationController extends BaseController {
private IdentityAuthenticationService identityAuthenticationService;
/**
* 查询身份认证EIDtoken
* 获取EIDtoken
*/
@PostMapping("/selectIdentityAuthenticaEIDtoken")
public AjaxResult selectIdentityAuthenticaEIDtoken()
{
IdentityAuthentication ientityAuthentication = identityAuthenticationService.selectIdentityAuthenticaEIDtoken();
return success(ientityAuthentication);
JSONObject tokenResult = identityAuthenticationService.selectIdentityAuthenticaEIDtoken();
return success(tokenResult);
}
/**
* 查询身份认证结果
* 小程序人脸核身后查询身份认证结果
*/
@PostMapping("/selectIdentityAuthenticaRespon")
public AjaxResult selectIdentityAuthenticaRespon(@Validated @RequestBody IdentityAuthentication ientityAuthentication)
{
String username = this.getUsername();
Long userId = this.getUserId();
ientityAuthentication.setUserId(userId);
ientityAuthentication.setUserName(username);
IdentityAuthentication ientityAuthenticationRes = identityAuthenticationService.selectIdentityAuthenticaRespon( ientityAuthentication);
return success(ientityAuthenticationRes);
// String username = this.getUsername();
// Long userId = this.getUserId();
// ientityAuthentication.setUserId(userId);
// ientityAuthentication.setUserName(username);
JSONObject checkResult = identityAuthenticationService.selectIdentityAuthenticaRespon( ientityAuthentication);
return success(checkResult);
}