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