|
@@ -46,6 +46,9 @@ public class AppCameraService {
|
|
if(StringUtils.isEmpty(userName) || cameraType == null){
|
|
if(StringUtils.isEmpty(userName) || cameraType == null){
|
|
throw new BusinessException(LoginConstant.FAILURE_CODE_3001, LoginConstant.FAILURE_MSG_3001);
|
|
throw new BusinessException(LoginConstant.FAILURE_CODE_3001, LoginConstant.FAILURE_MSG_3001);
|
|
}
|
|
}
|
|
|
|
+ if(cameraType == 4){
|
|
|
|
+ cameraType = 1;
|
|
|
|
+ }
|
|
User user = userService.getByUserName(userName);
|
|
User user = userService.getByUserName(userName);
|
|
if(user == null){
|
|
if(user == null){
|
|
throw new BusinessException(LoginConstant.FAILURE_CODE_3015, LoginConstant.FAILURE_MSG_3015);
|
|
throw new BusinessException(LoginConstant.FAILURE_CODE_3015, LoginConstant.FAILURE_MSG_3015);
|