|  |  | @ -1,6 +1,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | package com.glxp.udi.admin.controller.auth; |  |  |  | package com.glxp.udi.admin.controller.auth; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | import cn.hutool.core.util.IdUtil; |  |  |  | import cn.hutool.core.util.IdUtil; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import cn.hutool.core.util.StrUtil; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.alibaba.fastjson.JSONObject; |  |  |  | import com.alibaba.fastjson.JSONObject; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |  |  |  | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.udi.admin.annotation.AuthRuleAnnotation; |  |  |  | import com.glxp.udi.admin.annotation.AuthRuleAnnotation; | 
			
		
	
	
		
		
			
				
					|  |  | @ -93,6 +94,9 @@ public class RegisterController { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     @PostMapping("udiwarehouse/register/getCheckcode") |  |  |  |     @PostMapping("udiwarehouse/register/getCheckcode") | 
			
		
	
		
		
			
				
					
					|  |  |  |     public BaseResponse getCheckcode(@RequestBody CheckCodeRequest checkCodeRequest, HttpSession httpSession) { |  |  |  |     public BaseResponse getCheckcode(@RequestBody CheckCodeRequest checkCodeRequest, HttpSession httpSession) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if (StrUtil.isBlank(checkCodeRequest.getPhoneNum())) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             return ResultVOUtils.error(500, "请输入手机号!"); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (checkCodeRequest.getUserName() != null) { |  |  |  |         if (checkCodeRequest.getUserName() != null) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             AuthAdmin authAdmin = authAdminService.findByUserName(checkCodeRequest.getUserName()); |  |  |  |             AuthAdmin authAdmin = authAdminService.findByUserName(checkCodeRequest.getUserName()); | 
			
		
	
	
		
		
			
				
					|  |  | @ -110,7 +114,7 @@ public class RegisterController { | 
			
		
	
		
		
			
				
					
					|  |  |  |         int mobile_code = (int) ((Math.random() * 9 + 1) * 100000); |  |  |  |         int mobile_code = (int) ((Math.random() * 9 + 1) * 100000); | 
			
		
	
		
		
			
				
					
					|  |  |  |         MultiValueMap<String, Object> postParameters = new LinkedMultiValueMap<>(); |  |  |  |         MultiValueMap<String, Object> postParameters = new LinkedMultiValueMap<>(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         int time = 5; |  |  |  |         int time = 5; | 
			
		
	
		
		
			
				
					
					|  |  |  |         String content = new String("您正在进行手机验证,验证码是" + mobile_code + "," + time + "分钟内有效。"); |  |  |  |         String content = "您正在进行手机验证,验证码是" + mobile_code + "," + time + "分钟内有效。"; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         postParameters.add("account", "C07086222"); |  |  |  |         postParameters.add("account", "C07086222"); | 
			
		
	
		
		
			
				
					
					|  |  |  |         postParameters.add("password", "2dddbbf73636c193c5903324bdb47c5c"); |  |  |  |         postParameters.add("password", "2dddbbf73636c193c5903324bdb47c5c"); | 
			
		
	
		
		
			
				
					
					|  |  |  |         postParameters.add("mobile", checkCodeRequest.getPhoneNum()); |  |  |  |         postParameters.add("mobile", checkCodeRequest.getPhoneNum()); | 
			
		
	
	
		
		
			
				
					|  |  | 
 |