提交登录模块

pull/5/head
lijiayao 2023-12-11 18:37:56 +08:00
parent 6f274516e4
commit 0aca1ef4e1
5 changed files with 23 additions and 7 deletions

View File

@ -41,7 +41,7 @@ public class AuthServiceImpl implements AuthService {
Result<User> userResult = userFeignService.sendCode(userPhone); Result<User> userResult = userFeignService.sendCode(userPhone);
User user = userResult.getData(); User user = userResult.getData();
if (user==null){ if (user==null){
return Result.success("手机号不能为空"); return Result.success("手机号为空");
} }
String code=""; String code="";
for (int i = 0; i < 4; i++) { for (int i = 0; i < 4; i++) {
@ -55,8 +55,8 @@ public class AuthServiceImpl implements AuthService {
public Result users(UserVo userVo) { public Result users(UserVo userVo) {
//feign调用查出sql数据 //feign调用查出sql数据
Result<User> userName = userFeignService.sendCode(userVo.getUserPhone()); Result<User> userResult = userFeignService.sendCode(userVo.getUserPhone());
User user = userName.getData(); User user = userResult.getData();
if (user==null){ if (user==null){
return Result.error("该用户不存在,请先注册"); return Result.error("该用户不存在,请先注册");
} }

View File

@ -13,20 +13,25 @@ import java.util.Date;
* @author FangShiBa * @author FangShiBa
* @date 2023/12/10 * @date 2023/12/10
* @apiNote * @apiNote
*
*/ */
@Data @Data
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@ToString @ToString
public class LogMake { public class LogMake {
/* /**
*/ */
private Integer makeId; private Integer makeId;
/* /**
*/ */
private Integer carId; private Integer carId;
/**
*
*/
private String carNum;
/* /*
(: 1, : 2, : 3) (: 1, : 2, : 3)
*/ */

View File

@ -31,7 +31,6 @@ public class UserController {
public Result<User> sendCode(@PathVariable String userPhone){ public Result<User> sendCode(@PathVariable String userPhone){
log.info("功能描述:查询后台是否存在这个手机号,请求URI:{},请求方式:{},请求参数:{}",request.getServletPath(),request.getMethod(),userPhone); log.info("功能描述:查询后台是否存在这个手机号,请求URI:{},请求方式:{},请求参数:{}",request.getServletPath(),request.getMethod(),userPhone);
User user=userService.sendCode(userPhone); User user=userService.sendCode(userPhone);
Result result =Result.success(user); Result result =Result.success(user);
log.info("功能描述:查询后台是否存在这个手机号,请求URI:{},请求方式:{},响应结果:{}",request.getServletPath(),request.getMethod(), JSON.toJSONString(result)); log.info("功能描述:查询后台是否存在这个手机号,请求URI:{},请求方式:{},响应结果:{}",request.getServletPath(),request.getMethod(), JSON.toJSONString(result));

View File

@ -55,6 +55,6 @@ public class UserServiceImpl implements UserService {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
return Result.success("http://111.229.234.119:8848/"+url,"上传成功"); return Result.success("http://111.229.234.119:8888/"+url,"上传成功");
} }
} }

View File

@ -28,3 +28,15 @@ spring:
# 共享配置 # 共享配置
shared-configs: shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} - 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