Commit 948baa89 authored by 周健威's avatar 周健威

修改代码

parent 72ff7357
......@@ -48,24 +48,24 @@ public class GtdataController extends CommonBaseController implements UserRestIn
public static final String uploadP = "/rscloudmart/bg/upload/";
@RequestMapping(value = "/app/unauth/image/**", method = RequestMethod.GET)
@IgnoreUserToken
@IgnoreUserToken
public void queryAreaInfoByAreaId() throws Exception {
String url = request.getRequestURI();
String fileUrl = url.substring(url.lastIndexOf("/image/")+6);
String fileName = url.substring(url.lastIndexOf("/")+1);
String filePath = "";
if(fileUrl.contains("SN8")) {
// if(fileUrl.contains("SN8")) {
fileUrl = fileUrl.replace(".jpg", ".jpeg");
filePath = THUMBNAIL_PATH+ fileUrl;
}else {
if(fileName.lastIndexOf(".png") > 0) {
filePath = "/rscloudmart/bg/upload/2021-01-05/1609838996306.png";
}else if(fileName.lastIndexOf("98_98") > 0) {
filePath = "/rscloudmart/bg/upload/2021-01-07/1609990102713.jpeg";
}else {
filePath = "/rscloudmart/bg/upload/2021-01-07/1609987144037.jpeg";
}
}
// }else {
// if(fileName.lastIndexOf(".png") > 0) {
// filePath = "/rscloudmart/bg/upload/2021-01-05/1609838996306.png";
// }else if(fileName.lastIndexOf("98_98") > 0) {
// filePath = "/rscloudmart/bg/upload/2021-01-07/1609990102713.jpeg";
// }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