提交登录模块
parent
6f274516e4
commit
0aca1ef4e1
|
@ -41,7 +41,7 @@ public class AuthServiceImpl implements AuthService {
|
|||
Result<User> userResult = userFeignService.sendCode(userPhone);
|
||||
User user = userResult.getData();
|
||||
if (user==null){
|
||||
return Result.success("手机号不能为空");
|
||||
return Result.success("手机号为空");
|
||||
}
|
||||
String code="";
|
||||
for (int i = 0; i < 4; i++) {
|
||||
|
@ -55,8 +55,8 @@ public class AuthServiceImpl implements AuthService {
|
|||
public Result users(UserVo userVo) {
|
||||
|
||||
//feign调用查出sql数据
|
||||
Result<User> userName = userFeignService.sendCode(userVo.getUserPhone());
|
||||
User user = userName.getData();
|
||||
Result<User> userResult = userFeignService.sendCode(userVo.getUserPhone());
|
||||
User user = userResult.getData();
|
||||
if (user==null){
|
||||
return Result.error("该用户不存在,请先注册");
|
||||
}
|
||||
|
|
|
@ -13,20 +13,25 @@ import java.util.Date;
|
|||
* @author FangShiBa
|
||||
* @date 2023/12/10
|
||||
* @apiNote
|
||||
* 预约表
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@ToString
|
||||
public class LogMake {
|
||||
/*
|
||||
/**
|
||||
预约编号
|
||||
*/
|
||||
private Integer makeId;
|
||||
/*
|
||||
/**
|
||||
车辆编号
|
||||
*/
|
||||
private Integer carId;
|
||||
/**
|
||||
* 车牌号
|
||||
*/
|
||||
private String carNum;
|
||||
/*
|
||||
车位状态(空: 1, 已预约: 2, 无: 3)
|
||||
*/
|
||||
|
|
|
@ -31,7 +31,6 @@ public class UserController {
|
|||
public Result<User> sendCode(@PathVariable String userPhone){
|
||||
|
||||
log.info("功能描述:查询后台是否存在这个手机号,请求URI:{},请求方式:{},请求参数:{}",request.getServletPath(),request.getMethod(),userPhone);
|
||||
|
||||
User user=userService.sendCode(userPhone);
|
||||
Result result =Result.success(user);
|
||||
log.info("功能描述:查询后台是否存在这个手机号,请求URI:{},请求方式:{},响应结果:{}",request.getServletPath(),request.getMethod(), JSON.toJSONString(result));
|
||||
|
|
|
@ -55,6 +55,6 @@ public class UserServiceImpl implements UserService {
|
|||
throw new RuntimeException(e);
|
||||
}
|
||||
|
||||
return Result.success("http://111.229.234.119:8848/"+url,"上传成功");
|
||||
return Result.success("http://111.229.234.119:8888/"+url,"上传成功");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,3 +28,15 @@ spring:
|
|||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
fdfs:
|
||||
so-timeout: 1500 # socket 连接时长
|
||||
connect-timeout: 600 # 连接 tracker 服务器超时时长
|
||||
# 这两个是你服务器的 IP 地址,注意 23000 端口也要打开,阿里云服务器记得配置安全组。tracker 要和 stroage 服务进行交流
|
||||
tracker-list: 111.229.234.119:22122
|
||||
web-server-url: 111.229.234.119:8888
|
||||
pool:
|
||||
jmx-enabled: false
|
||||
# 生成缩略图
|
||||
thumb-image:
|
||||
height: 500
|
||||
width: 500
|
Loading…
Reference in New Issue