|
@@ -300,7 +300,10 @@ public class FaceppClient {
|
|
*/
|
|
*/
|
|
public JsonHttpResponseHolder compareWithImageUrl(String imageUrl1, String imageUrl2) {
|
|
public JsonHttpResponseHolder compareWithImageUrl(String imageUrl1, String imageUrl2) {
|
|
|
|
|
|
- String url = "https://api-cn.faceplusplus.com/facepp/v3/compare";
|
|
|
|
|
|
+ String url = System.getProperty("facepp.compare.url");
|
|
|
|
+ if (StringUtils.isBlank(url)) {
|
|
|
|
+ url = compareUrl;
|
|
|
|
+ }
|
|
|
|
|
|
HttpPost httpPost = new HttpPost(url);
|
|
HttpPost httpPost = new HttpPost(url);
|
|
httpPost.setConfig(FaceppClient.requestConfig);
|
|
httpPost.setConfig(FaceppClient.requestConfig);
|