mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	update 优化工作流,跳过以 $ 或 # 开头的内置变量表达式解析
This commit is contained in:
		@@ -228,6 +228,14 @@ public class FlwTaskAssigneeServiceImpl implements IFlwTaskAssigneeService, Hand
 | 
			
		||||
     * @return Pair(TaskAssigneeEnum, Long),如果格式非法返回 null
 | 
			
		||||
     */
 | 
			
		||||
    private Pair<TaskAssigneeEnum, Long> parseStorageId(String storageId) {
 | 
			
		||||
        if (StringUtils.isBlank(storageId)) {
 | 
			
		||||
            return null;
 | 
			
		||||
        }
 | 
			
		||||
        // 跳过以 $ 或 # 开头的字符串
 | 
			
		||||
        if (StringUtils.startsWith(storageId, "$") || StringUtils.startsWith(storageId, "#")) {
 | 
			
		||||
            log.info("跳过 storageId 解析,检测到内置变量表达式:{}", storageId);
 | 
			
		||||
            return null;
 | 
			
		||||
        }
 | 
			
		||||
        try {
 | 
			
		||||
            String[] parts = storageId.split(StrUtil.COLON, 2);
 | 
			
		||||
            if (parts.length < 2) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user