|
|
@@ -49,7 +49,7 @@ public class FaceServiceImpl implements IFaceService {
|
|
|
private UserMapper userMapper;
|
|
|
|
|
|
@Override
|
|
|
- public FaceVo getFaceDetectAuth() {
|
|
|
+ public FaceVo getFaceDetectAuth(String RuleId) {
|
|
|
try{
|
|
|
Credential cred = new Credential(SecretId, SecretKey);
|
|
|
|
|
|
@@ -58,7 +58,7 @@ public class FaceServiceImpl implements IFaceService {
|
|
|
ClientProfile clientProfile = new ClientProfile();
|
|
|
clientProfile.setHttpProfile(httpProfile);
|
|
|
FaceidClient client = new FaceidClient(cred, "", clientProfile);
|
|
|
- String params = "{\"RuleId\":\"0\"}";
|
|
|
+ String params = "{\"RuleId\":\""+RuleId+"\"}";
|
|
|
DetectAuthRequest req = DetectAuthRequest.fromJsonString(params, DetectAuthRequest.class);
|
|
|
// DetectAuthRequest req = new DetectAuthRequest();
|
|
|
DetectAuthResponse resp = client.DetectAuth(req);
|