wangwei 6 жил өмнө
parent
commit
9a8fbc7ecf

+ 1 - 1
examcloud-core-basic-api-provider/src/main/java/cn/com/qmth/examcloud/core/basic/api/provider/UserCloudServiceProvider.java

@@ -215,7 +215,7 @@ public class UserCloudServiceProvider extends ControllerSupport implements UserC
 		if (null != roleId) {
 			RoleEntity roleEntity = roleRepo.findOne(roleId);
 			if (null == roleEntity) {
-				throw new StatusException("B-150002", "角色不存在");
+				throw new StatusException("B-150001", "角色不存在");
 			}
 		} else if (StringUtils.isNotBlank(roleCode)) {
 			RoleEntity roleEntity = roleRepo.findByCodeAndRootOrgIdIsNull(roleCode.trim());

+ 0 - 2
examcloud-core-basic-service/src/main/java/cn/com/qmth/examcloud/core/basic/service/impl/AuthServiceImpl.java

@@ -9,7 +9,6 @@ import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 
-import com.esotericsoftware.minlog.Log;
 import com.google.common.collect.Lists;
 import com.google.common.collect.Sets;
 
@@ -422,7 +421,6 @@ public class AuthServiceImpl implements AuthService {
 		}
 
 		long currentTimeMillis = System.currentTimeMillis();
-		Log.debug("currentTimeMillis = " + currentTimeMillis);
 		if (Math.abs(currentTimeMillis - timestampLong) > thirdPartyAccess.getTimeRange()) {
 			throw new StatusException("B-001203", "timestamp超出时间差范围");
 		}