| | |
| | | try { |
| | | //Boolean flag = cacheManager.getCacheNames().isEmpty() ; |
| | | uuid = UUID.randomUUID().toString(); |
| | | userPo = this.sv.login(uuid, vo.phone, vo.password); |
| | | userPo = this.sv.loginWithMapperXml(uuid, vo.phone, vo.password); |
| | | } catch (Exception e) { |
| | | log.error("用户登录异常", e); |
| | | return BaseResponseUtils.buildException(e.getMessage()) ; |
| | |
| | | try { |
| | | //Boolean flag = cacheManager.getCacheNames().isEmpty() ; |
| | | uuid = UUID.randomUUID().toString(); |
| | | userPo = this.sv.login(uuid, vo.phone, vo.password); |
| | | userPo = this.sv.loginWithMapperXml(uuid, vo.phone, vo.password); |
| | | } catch (Exception e) { |
| | | log.error("用户登录异常", e); |
| | | return BaseResponseUtils.buildException(e.getMessage()) ; |
| | |
| | | return vo ; |
| | | } |
| | | |
| | | ///////////////////////////////////////////////////////////////// |
| | | // |
| | | // 以下私有方法 |
| | | // |
| | | ///////////////////////////////////////////////////////////////// |
| | | /** |
| | | * 判断登录用户是否拥有指定的一个权限 |
| | | * @param privilege 指定的一个权限 |