| | |
| | | import com.ruoyi.system.domain.vo.UserAccountUpdateVo; |
| | | import com.ruoyi.system.service.GroupWelcomeConfigService; |
| | | import com.ruoyi.system.service.IpBlacklistService; |
| | | import com.ruoyi.system.service.PaymentRecordService; |
| | | import com.ruoyi.system.service.UserAccountService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | @Autowired |
| | | InsuranceFeatureService insuranceFeatureService; |
| | | |
| | | |
| | | |
| | | @Value("${file.upload-dir}") |
| | | private String uploadDir; |
| | | |
| | |
| | | @PostMapping("/register") |
| | | public Result register(@Validated RegisterDto dto){ |
| | | try { |
| | | if(StringUtils.isEmpty(dto.getNikeName())){ |
| | | return Result.error("昵称不能为空!"); |
| | | } |
| | | // 验证手机号 |
| | | boolean isPhoneValid = ValidatorUtil.isValidPhone(dto.getAccount()); |
| | | if(!isPhoneValid){ |
| | |
| | | long count = userPolicyService.count(new LambdaQueryWrapper<>(UserPolicy.class) |
| | | .eq(UserPolicy::getUserId, userAccount.getId()) |
| | | .eq(UserPolicy::getProductId,f.getId()) |
| | | .eq(UserPolicy::getPayStatus,2) |
| | | .ne(UserPolicy::getApprovalStatus,2) |
| | | ); |
| | | if(count > 0){ |