Fix 3.9.6 (#880)

* be:钉钉内下载

* 3.9.6
This commit is contained in:
REBUILD 企业管理系统 2025-03-20 22:22:14 +08:00 committed by GitHub
parent 7715e6864f
commit d7d0ab3d39
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 20 deletions

2
@rbv

@ -1 +1 @@
Subproject commit 7fc82f58f0a343da749893293530a7f435ed5665
Subproject commit b13226fbddc16aa9bfef8b84c76a5b841d5333a3

View file

@ -10,7 +10,7 @@
</parent>
<groupId>com.rebuild</groupId>
<artifactId>rebuild</artifactId>
<version>3.9.5</version>
<version>3.9.6</version>
<name>rebuild</name>
<description>Building your business-systems freely!</description>
<url>https://getrebuild.com/</url>

View file

@ -74,11 +74,11 @@ public class Application implements ApplicationListener<ApplicationStartedEvent>
/**
* Rebuild Version
*/
public static final String VER = "3.9.5";
public static final String VER = "3.9.6";
/**
* Rebuild Build [MAJOR]{1}[MINOR]{2}[PATCH]{2}[BUILD]{2}
*/
public static final int BUILD = 3090510;
public static final int BUILD = 3090610;
static {
// Driver for DB

View file

@ -27,15 +27,6 @@ class RbPreview extends React.Component {
const currentUrl = this.props.urls[this.state.currentIndex]
const fileName = $fileCutName(currentUrl)
const downloadUrl = this._buildAbsoluteUrl(currentUrl, 'attname=' + $encode(fileName))
// fix:3.9.5 钉钉内下载
if ($env.isDingTalk()) {
$.get(`/filex/make-url?url=${currentUrl}`, (res) => {
if (res.data.publicUrl) {
let s = res.data.publicUrl + '&attname=' + $encode(fileName)
$(this._dlg).find('.J_downloadUrl').attr('href', s)
}
})
}
let previewContent = null
if (this._isImage(fileName)) previewContent = this.renderImage()
@ -219,13 +210,6 @@ class RbPreview extends React.Component {
previewUrl = `${rb.baseUrl}/filex/` + url.split('/filex/')[1]
}
}
// fix:3.9.1 PC钉钉预览PDF
if ($env.isDingTalk()) {
window.open(previewUrl)
that.hide()
return
}
}
that.setState({ previewUrl: previewUrl, errorMsg: null })
}