fengjin
2022-11-14 520a2ddbaf156063686e29bb8e9cb3e9065ae7f0
1.修改导半工单手机号判重bug 2.修改天气接口
2个文件已修改
11 ■■■■■ 已修改文件
flower_city/src/main/java/com/dg/core/controller/CommonController.java 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
flower_city/src/main/java/com/dg/core/controller/GuideDoController.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
flower_city/src/main/java/com/dg/core/controller/CommonController.java
@@ -17,6 +17,7 @@
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
@@ -54,6 +55,9 @@
    private int port;
    @Value("${ftp.url}")
    private String url;
    @Resource
    RedisTemplate<String, Object> redisTemplate;
    @RequestMapping("/hello")
@@ -160,11 +164,10 @@
        TestDate td = new TestDate();
        Map weather;
        if (code == null) {
            weather = td.getWeather("510400");
            return ResultData.success(redisTemplate.opsForValue().get("weather") + "");
        } else {
            weather = td.getWeather(code);
            return ResultData.success(td.getWeather(code));
        }
        return ResultData.success(weather);
    }
flower_city/src/main/java/com/dg/core/controller/GuideDoController.java
@@ -158,7 +158,7 @@
        config.setUserType("2");
        SysUser user=IUserService.selectData(null,config.getPhonenumber(),null);
        if (user != null)
        if (user != null && !(user.getUserId().equals(config.getUserId())))
        {
            //提示用户名或密码错误
            return ResultData.error("该手机账户已存在!请更换手机号");