diff --git a/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar b/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar index 739df853..d8547941 100644 Binary files a/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar and b/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar differ diff --git a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/designer/web/CoeDesignerWeb.java b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/designer/web/CoeDesignerWeb.java index 5c453245..59a1ece7 100755 --- a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/designer/web/CoeDesignerWeb.java +++ b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/designer/web/CoeDesignerWeb.java @@ -7,23 +7,14 @@ import java.io.IOException; import java.nio.charset.StandardCharsets; import java.sql.Timestamp; import java.text.SimpleDateFormat; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.Comparator; -import java.util.Date; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Iterator; -import java.util.List; -import java.util.Map; +import java.util.*; import java.util.Map.Entry; -import java.util.Set; import javax.imageio.ImageIO; import com.actionsoft.apps.coe.pal.pal.repository.cache.*; import com.actionsoft.bpms.util.*; +import com.actionsoft.bpms.util.Base64; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.lang.StringUtils; import org.apache.poi.hssf.usermodel.HSSFCell; @@ -3448,7 +3439,8 @@ public class CoeDesignerWeb extends ActionWeb { PALRepositoryQueryAPIManager.getInstance().UpDatePublishCount(plModel); } /********************描述************************/ - + //增加浏览器唯一id + macroLibraries.put("browserId", generateRandom()); if (plModel.getMethodId().equals("process.evc")) { return HtmlPageTemplate.merge(CoEConstant.APP_ID, "pal.pl.repository.designer.view.portal.framework.html", macroLibraries); } else { @@ -3458,6 +3450,14 @@ public class CoeDesignerWeb extends ActionWeb { } + public static String generateRandom() { + // 使用UUID生成唯一随机数,然后转换为16进制 + UUID uuid = UUID.randomUUID(); + return Long.toHexString(uuid.getMostSignificantBits()) + + Long.toHexString(uuid.getLeastSignificantBits()); + } + + diff --git a/com.actionsoft.apps.coe.pal/template/page/pal.pl.repository.designer.view.portal.html b/com.actionsoft.apps.coe.pal/template/page/pal.pl.repository.designer.view.portal.html index f3ae0c3c..bf30d9e7 100755 --- a/com.actionsoft.apps.coe.pal/template/page/pal.pl.repository.designer.view.portal.html +++ b/com.actionsoft.apps.coe.pal/template/page/pal.pl.repository.designer.view.portal.html @@ -252,7 +252,6 @@