| | |
| | | if (null == uid) { |
| | | return ResultUtil.tokenErr(); |
| | | } |
| | | //判断当前用户是否是员工 |
| | | |
| | | AppUser appUser1 = appUserClient.queryAppUser(uid); |
| | | User one = userService.getOne(new QueryWrapper<User>().eq("phone", appUser1.getPhone()).eq("status", 1)); |
| | | if (null != one) { |
| | | //判断当前用户是否是员工 |
| | | List<User> one = userService.list(new QueryWrapper<User>().eq("phone", appUser1.getPhone()).eq("status", 1)); |
| | | if (!one.isEmpty()) { |
| | | return ResultUtil.success(1); |
| | | } |
| | | //普通用户校验当前时间是否在预约时间段内 |
| | |
| | | } |
| | | //判断当前用户是否是员工 |
| | | AppUser appUser1 = appUserClient.queryAppUser(uid); |
| | | User one = userService.getOne(new QueryWrapper<User>().eq("phone", appUser1.getPhone()).eq("status", 1)); |
| | | if (null != one) { |
| | | List<User> one = userService.list(new QueryWrapper<User>().eq("phone", appUser1.getPhone()).eq("status", 1)); |
| | | if (!one.isEmpty()) { |
| | | Integer integer = startGame(uid, gameType, gameId, spaceId, sutuId); |
| | | return ResultUtil.success(); |
| | | } |