|
@@ -22,6 +22,7 @@ import com.fdkankan.ucenter.entity.CameraDetail;
|
|
|
import com.fdkankan.ucenter.entity.User;
|
|
|
import com.fdkankan.ucenter.service.ICameraDetailService;
|
|
|
import com.fdkankan.ucenter.service.ICameraService;
|
|
|
+import com.fdkankan.ucenter.service.ILoginLogService;
|
|
|
import com.fdkankan.ucenter.service.IUserService;
|
|
|
import com.fdkankan.ucenter.vo.request.LoginParam;
|
|
|
import com.fdkankan.ucenter.vo.request.RegisterParam;
|
|
@@ -48,6 +49,8 @@ public class LoginService {
|
|
|
private ICameraService cameraService;
|
|
|
@Autowired
|
|
|
private ICameraDetailService cameraDetailService;
|
|
|
+ @Autowired
|
|
|
+ private ILoginLogService loginLogService;
|
|
|
@Value("${phone.code.cn}")
|
|
|
private String cnCode;
|
|
|
@Value("${main.url}")
|
|
@@ -72,7 +75,7 @@ public class LoginService {
|
|
|
throw new BusinessException(LoginConstant.FAILURE_CODE_3014, LoginConstant.FAILURE_MSG_3014);
|
|
|
}
|
|
|
String token = this.redisLogin(user.getUserName(),JSONObject.toJSONString(user));
|
|
|
-
|
|
|
+ loginLogService.addLog("",token);
|
|
|
UserVo userVo = new UserVo();
|
|
|
BeanUtils.copyProperties(user,userVo);
|
|
|
LoginVo vo = new LoginVo();
|