| 
					
				 | 
			
			
				@@ -21,6 +21,7 @@ import cn.newfeifan.mall.framework.common.util.object.BeanUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import cn.newfeifan.mall.module.distri.dal.mysql.sharelink.ShareLinkMapper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import static cn.newfeifan.mall.framework.common.enums.CategoryEnum.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import static cn.newfeifan.mall.framework.common.exception.enums.GlobalErrorCodeConstants.UNAUTHORIZED; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import static cn.newfeifan.mall.framework.common.exception.util.ServiceExceptionUtil.exception; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import static cn.newfeifan.mall.framework.security.core.util.SecurityFrameworkUtils.getLoginUserId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import static cn.newfeifan.mall.module.distri.enums.ErrorCodeConstants.*; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -79,7 +80,11 @@ public class ShareLinkServiceImpl implements ShareLinkService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public String getShareLink(AppShareLinkReqVO appShareLinkReqVO) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //先判断是否存在 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        ShareLinkDO shareLinkDO = shareLinkMapper.selectByCategory(appShareLinkReqVO.getCategory(), getLoginUserId(), appShareLinkReqVO.getObjectId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Long loginUserId = getLoginUserId(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (ObjectUtil.isEmpty(loginUserId)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            throw exception(UNAUTHORIZED); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ShareLinkDO shareLinkDO = shareLinkMapper.selectByCategory(appShareLinkReqVO.getCategory(), loginUserId, appShareLinkReqVO.getObjectId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (ObjectUtil.isNotEmpty(shareLinkDO)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             //存在就直接返回查询出来的id - 十六进制 
			 |