|
@@ -95,9 +95,9 @@ public class WeatherCtl extends BaseWebCtl {
|
|
|
WeatherRecv wr = weatherService.queryCurrent3dForecast(areaid);
|
|
|
pathBuilder.append(request.getSession().getServletContext()
|
|
|
.getRealPath("/"));
|
|
|
- pathBuilder.append("\\static\\w\\32\\");
|
|
|
- pathBuilder.append(type);
|
|
|
- pathBuilder.append("\\");
|
|
|
+ pathBuilder.append("\\static\\w\\xz\\");
|
|
|
+ /*pathBuilder.append(type);
|
|
|
+ pathBuilder.append("\\");*/
|
|
|
WForecastBean wb = wr.getD1();
|
|
|
if (null != wb) {
|
|
|
if ("2".equals(day)) {
|
|
@@ -120,14 +120,14 @@ public class WeatherCtl extends BaseWebCtl {
|
|
|
if (null == path) {
|
|
|
file = new File(request.getSession().getServletContext()
|
|
|
.getRealPath("/")
|
|
|
- + "/static/w/32/default.png");
|
|
|
+ + "/static/w/xz/99.png");
|
|
|
} else {
|
|
|
file = new File(path);
|
|
|
// 判断文件是否存在如果不存在就返回默认图标
|
|
|
if (!(file.exists() && file.canRead())) {
|
|
|
file = new File(request.getSession().getServletContext()
|
|
|
.getRealPath("/")
|
|
|
- + "/static/w/32/default.png");
|
|
|
+ + "/static/w/xz/99.png");
|
|
|
}
|
|
|
}
|
|
|
|