|
@@ -14,6 +14,7 @@ import com.fdkankan.agent.response.AgentNewVo;
|
|
import com.fdkankan.agent.service.IAgentNewService;
|
|
import com.fdkankan.agent.service.IAgentNewService;
|
|
import com.fdkankan.redis.constant.RedisKey;
|
|
import com.fdkankan.redis.constant.RedisKey;
|
|
import com.fdkankan.redis.util.RedisUtil;
|
|
import com.fdkankan.redis.util.RedisUtil;
|
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
@@ -25,6 +26,7 @@ import javax.annotation.Resource;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
@RestController
|
|
@RestController
|
|
|
|
+@Slf4j
|
|
@RequestMapping("/agent")
|
|
@RequestMapping("/agent")
|
|
public class LoginController extends BaseController {
|
|
public class LoginController extends BaseController {
|
|
|
|
|
|
@@ -50,7 +52,7 @@ public class LoginController extends BaseController {
|
|
}
|
|
}
|
|
return ResultData.error(fdkkLoginVo.getCode(),fdkkLoginVo.getMsg());
|
|
return ResultData.error(fdkkLoginVo.getCode(),fdkkLoginVo.getMsg());
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
- e.printStackTrace();
|
|
|
|
|
|
+ log.error("fd登录失败",e);
|
|
}
|
|
}
|
|
throw new BusinessException(ResultCode.FD_ERROR);
|
|
throw new BusinessException(ResultCode.FD_ERROR);
|
|
}
|
|
}
|