|
@@ -180,13 +180,13 @@ public class FaceRetrievaServer {
|
|
|
* @param timeout 秒
|
|
|
*/
|
|
|
public RetrievaResultVO retrieval(String photo, Integer timeout) {
|
|
|
- RetrievaResultVO login = this.login(new RetrievaLoginParam().setName(name).setPassword(password));
|
|
|
+ RetrievaResultVO login = this.login(timeout);
|
|
|
log.info("依图 login: {}", login.toString());
|
|
|
if (login.getRtn() != null && !login.getRtn().equals(0)) {
|
|
|
throw new BaseException(login.getMessage());
|
|
|
}
|
|
|
|
|
|
- RetrievaResultVO repository = this.repository(login.getSession_id());
|
|
|
+ RetrievaResultVO repository = this.repository(login.getSession_id(), timeout);
|
|
|
if (repository != null && !repository.getRtn().equals(0)) {
|
|
|
throw new BaseException(repository.getMessage());
|
|
|
}
|