|  |  | @ -32,6 +32,7 @@ import com.epmet.commons.tools.utils.HttpClientManager; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.tools.utils.Result; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.constant.ModuleConstant; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.constant.RoleKeyConstants; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.constant.ThirdConstant; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.constant.UserWorkType; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.dao.CustomerDao; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.dto.*; | 
			
		
	
	
		
			
				
					|  |  | @ -520,13 +521,15 @@ public class CustomerServiceImpl extends BaseServiceImpl<CustomerDao, CustomerEn | 
			
		
	
		
			
				
					|  |  |  |             throw new RenException(customerResult.getCode(), customerResult.getInternalMsg()); | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         //7.设置服务器域名,业务域名
 | 
			
		
	
		
			
				
					|  |  |  |         String domainUrl = "https://epmet-cloud.elinkservice.cn/api/third/code/setdomain/" + formDTO.getCustomerId(); | 
			
		
	
		
			
				
					|  |  |  |         String domainData = HttpClientManager.getInstance().sendPostByJSON(domainUrl, null).getData(); | 
			
		
	
		
			
				
					|  |  |  |         JSONObject domainObject = JSON.parseObject(domainData); | 
			
		
	
		
			
				
					|  |  |  |         Result domainResult = ConvertUtils.mapToEntity(domainObject, Result.class); | 
			
		
	
		
			
				
					|  |  |  |         if (!domainResult.success()) { | 
			
		
	
		
			
				
					|  |  |  |             throw new RenException(domainResult.getCode(), domainResult.getInternalMsg()); | 
			
		
	
		
			
				
					|  |  |  |         //7.为微信小程序客户设置服务器域名,业务域名
 | 
			
		
	
		
			
				
					|  |  |  |         if (ThirdConstant.MINI.equals(paCustomer.getType())) { | 
			
		
	
		
			
				
					|  |  |  |             String domainUrl = "https://epmet-cloud.elinkservice.cn/api/third/code/setdomain/" + formDTO.getCustomerId(); | 
			
		
	
		
			
				
					|  |  |  |             String domainData = HttpClientManager.getInstance().sendPostByJSON(domainUrl, null).getData(); | 
			
		
	
		
			
				
					|  |  |  |             JSONObject domainObject = JSON.parseObject(domainData); | 
			
		
	
		
			
				
					|  |  |  |             Result domainResult = ConvertUtils.mapToEntity(domainObject, Result.class); | 
			
		
	
		
			
				
					|  |  |  |             if (!domainResult.success()) { | 
			
		
	
		
			
				
					|  |  |  |                 throw new RenException(domainResult.getCode(), domainResult.getInternalMsg()); | 
			
		
	
		
			
				
					|  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
	
		
			
				
					|  |  | 
 |