Commit 144feb9a authored by 周健威's avatar 周健威

修改省bug

parent 0412b0cf
......@@ -48,8 +48,12 @@ public class GtdataController extends CommonBaseController implements UserRestIn
@IgnoreUserToken
public void queryAreaInfoByAreaId() throws Exception {
String url = request.getRequestURI();
String fileUrl = url.substring(url.lastIndexOf("/image/")+1);
String fileName = url.substring(url.lastIndexOf("/")+1);
String filePath = "";
if(fileUrl.contains("SN8")) {
filePath = fileUrl;
}else {
if(fileName.lastIndexOf(".png") > 0) {
filePath = "/rscloudmart/bg/upload/2021-01-05/1609838996306.png";
}else if(fileName.lastIndexOf("98_98") > 0) {
......@@ -57,6 +61,7 @@ public class GtdataController extends CommonBaseController implements UserRestIn
}else {
filePath = "/rscloudmart/bg/upload/2021-01-07/1609987144037.jpeg";
}
}
//String filePath = "https://w173.obtdata.com/image//data/HEM2/2019/11/18/HEM2_20191118235223_0010_L1B_CMOS1/HEM2_20191118235223_0010_L1B_CMOS1_800_800.png?op=OPEN";
//String filePath = "https://box.bdimg.com/static/fisp_static/common/img/searchbox/logo_news_276_88_1f9876a.png";
// String filePath = "/obt/thumbnail/"+ url.substring(url.lastIndexOf("/app/unauth/image/")+18);
......
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