jiayao123 #5

Open
FangShiBa wants to merge 5 commits from jiayao123 into master
8 changed files with 26 additions and 21 deletions

View File

@ -3,13 +3,11 @@ package com.bwie.auth.controller;
import com.alibaba.fastjson.JSON;
import com.bwie.auth.service.AuthService;
import com.bwie.common.pojo.DTO.UserDto;
import com.bwie.common.pojo.User;
import com.bwie.common.pojo.vo.UserVo;
import com.bwie.common.result.Result;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletRequest;

View File

@ -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("该用户不存在,请先注册");
}

View File

@ -1,7 +0,0 @@
package com.bwie.common.pojo;
public class Fang {
public void Fang(){
System.out.println("方十八是大帅比");
}
}

View File

@ -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)
*/

View File

@ -27,15 +27,12 @@ public class Stop {
*/
private Integer carId;
private String carNum;
/*
*/
private Integer userId;
/*
*/
private Integer parkingId;
/*
/**
*/
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")

View File

@ -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));
@ -58,6 +57,7 @@ public class UserController {
log.info("功能描述:当用户不存在时,请注册,请求URI:{},请求方式:{},请求参数:{}",request.getServletPath(),request.getMethod(),userVo);
Result result=userService.register(userVo);
System.out.println(userVo);
log.info("功能描述:当用户不存在时,请注册,请求URI:{},请求方式:{},响应结果:{}",request.getServletPath(),request.getMethod(), JSON.toJSONString(result));
return result;
}

View File

@ -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,"上传成功");
}
}

View File

@ -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