Browse Source

增加username参数

zheng-1641779399395
kerry 4 years ago
parent
commit
2bd3625d69
  1. 4
      designer-form/src/main/java/com/fr/design/mainframe/share/util/DownloadUtils.java

4
designer-form/src/main/java/com/fr/design/mainframe/share/util/DownloadUtils.java

@ -1,5 +1,6 @@
package com.fr.design.mainframe.share.util; package com.fr.design.mainframe.share.util;
import com.fr.design.DesignerEnvManager;
import com.fr.design.extra.PluginConstants; import com.fr.design.extra.PluginConstants;
import com.fr.form.share.base.CancelCheck; import com.fr.form.share.base.CancelCheck;
import com.fr.form.share.constants.ShareComponentConstants; import com.fr.form.share.constants.ShareComponentConstants;
@ -136,7 +137,8 @@ public class DownloadUtils {
FineLoggerFactory.getLogger().info("start download widget {}", id); FineLoggerFactory.getLogger().info("start download widget {}", id);
HttpUriRequest file = RequestBuilder.post() HttpUriRequest file = RequestBuilder.post()
.setHeader("User-Agent", "Mozilla/5.0") .setHeader("User-Agent", "Mozilla/5.0")
.setUri(url).addParameter("id", encrypt(id)) .setUri(url).addParameter("id", encrypt(id)).addParameter("username",
DesignerEnvManager.getEnvManager().getDesignerLoginUsername() )
.build(); .build();
return client.execute(file); return client.execute(file);
} }

Loading…
Cancel
Save