Commit 02173402 authored by 技术部-韩成龙's avatar 技术部-韩成龙

修改接口地址

parent 311c0e5e
......@@ -33,6 +33,9 @@ public class FeatureServiceImpl implements IFeatureService {
@Value("${rule.engine.url}")
private String ruleEngineURL;
@Value("${auth.https}")
private String authUrl;
@Autowired
private IHttpService httpService;
......@@ -64,8 +67,7 @@ public class FeatureServiceImpl implements IFeatureService {
}
Map<String,String> map = new HashMap<>();
map.put("uuid", uuid);
// todo 此处需要更改
String responce = httpService.get(ruleEngineURL, map);
String responce = httpService.postJson(authUrl.concat("/ex/phone/getOcrReturnResult.json"), map);
List<IdCardInfo> idCardInfoList = JacksonUtil.deserializeList(responce, IdCardInfo.class);
Optional<IdCardInfo> cardInfo = idCardInfoList.stream().filter(d -> d.getSide().equals("back")).findFirst();
if (!cardInfo.isPresent()){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment