|
@@ -30,8 +30,7 @@ import java.io.OutputStream;
|
|
|
import java.security.cert.CertificateException;
|
|
|
import java.security.cert.X509Certificate;
|
|
|
|
|
|
-import static com.huimv.video.dhicc.icc.CommonConstant.IPAndPort;
|
|
|
-import static com.huimv.video.dhicc.icc.CommonConstant.Sg_IPAndPort;
|
|
|
+import static com.huimv.video.dhicc.icc.CommonConstant.*;
|
|
|
|
|
|
|
|
|
@RestController
|
|
@@ -66,13 +65,13 @@ public class GetPicture {
|
|
|
//如果 fileURL不为空 就认为是拿摄像头抓拍图片
|
|
|
//目前只有曙光照片
|
|
|
if (StringUtilsWork.isNotEmpty(fileUrl)) {
|
|
|
- url = Sg_IPAndPort + "/evo-apigw/" + fileUrl;
|
|
|
+ url = hn_IPandPord + "/evo-apigw/" + fileUrl;
|
|
|
} else if (StringUtilsWork.isNotEmpty(path)) {
|
|
|
//档案的图片
|
|
|
- url = Sg_IPAndPort + "/evo-pic/" + path + "?token=" + access_token + "&oss_addr=" + CommonConstant.Sg_Document_Oss_Addr;
|
|
|
+ url = hn_IPandPord + "/evo-pic/" + path + "?token=" + access_token + "&oss_addr=" + CommonConstant.hn_Document_oss_addr;
|
|
|
} else {
|
|
|
//事件的图片
|
|
|
- url = Sg_IPAndPort + "/evo-pic/" + alarmPicture + "?token=" + access_token + "&oss_addr=" + CommonConstant.Sg_Shijian_Oss_Addr;
|
|
|
+ url = hn_IPandPord + "/evo-pic/" + alarmPicture + "?token=" + access_token + "&oss_addr=" + CommonConstant.hn_shijian_oss_addr;
|
|
|
}
|
|
|
}else if (farmId == 21){
|
|
|
GetTokenResponse tokenTest03 = oauthIntegrationManager.getTokenTest03();
|
|
@@ -80,13 +79,13 @@ public class GetPicture {
|
|
|
//如果 fileURL不为空 就认为是拿摄像头抓拍图片
|
|
|
//目前只有曙光照片
|
|
|
if (StringUtilsWork.isNotEmpty(fileUrl)) {
|
|
|
- url = Sg_IPAndPort + "/evo-apigw/" + fileUrl;
|
|
|
+ url = cn_IPandPord + "/evo-apigw/" + fileUrl;
|
|
|
} else if (StringUtilsWork.isNotEmpty(path)) {
|
|
|
//档案的图片
|
|
|
- url = Sg_IPAndPort + "/evo-pic/" + path + "?token=" + access_token + "&oss_addr=" + CommonConstant.Sg_Document_Oss_Addr;
|
|
|
+ url = cn_IPandPord + "/evo-pic/" + path + "?token=" + access_token + "&oss_addr=" + CommonConstant.cn_Document_oss_addr;
|
|
|
} else {
|
|
|
//事件的图片
|
|
|
- url = Sg_IPAndPort + "/evo-pic/" + alarmPicture + "?token=" + access_token + "&oss_addr=" + CommonConstant.Sg_Shijian_Oss_Addr;
|
|
|
+ url = cn_IPandPord + "/evo-pic/" + alarmPicture + "?token=" + access_token + "&oss_addr=" + CommonConstant.cn_shijian_oss_addr;
|
|
|
}
|
|
|
}
|
|
|
HttpResponse httpResponse = null;
|