| 
					
				 | 
			
			
				@@ -950,21 +950,24 @@ public class SopLogsTaskServiceImpl implements SopLogsTaskService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     String sortLink = createLinkByMiniApp(setting, logVo, sendTime, courseId, videoId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             qwUserId, companyUserId, companyId, externalId,isOfficial,sopLogs.getFsUserId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    if(sopLogs.getSendType()==1){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        setting.setMiniprogramAppid(miniAppId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        //算主备小程序 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        String finalAppId = getAppIdFromMiniMap(miniMap, companyId, sendMsgType, grade); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        if (StringUtil.strIsNullOrEmpty(finalAppId)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            finalAppId = miniAppId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    //算主备小程序 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    String finalAppId = getAppIdFromMiniMap(miniMap, companyId, sendMsgType, grade); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    if (StringUtil.strIsNullOrEmpty(finalAppId)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        finalAppId = miniAppId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        if (!StringUtil.strIsNullOrEmpty(finalAppId)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            setting.setMiniprogramAppid(finalAppId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            log.error("公司的小程序id为空:采用了前端传的固定值" + sopLogs.getSopId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    if (!StringUtil.strIsNullOrEmpty(finalAppId)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        setting.setMiniprogramAppid(finalAppId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        log.error("公司的小程序id为空:采用了前端传的固定值" + sopLogs.getSopId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     setting.setMiniprogramPage(sortLink.replaceAll("^[\\s\\u2005]+", "")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     try { 
			 |