perf: 适配arm64

This commit is contained in:
kuaifan 2023-08-01 22:22:44 +08:00
parent 600944fc22
commit bb251c8aee
2 changed files with 7 additions and 4 deletions

View File

@ -102,8 +102,7 @@ services:
fileview: fileview:
container_name: "dootask-fileview-${APP_ID}" container_name: "dootask-fileview-${APP_ID}"
image: "kuaifan/fileview:4.1.0-SNAPSHOT-RC20" image: "kuaifan/fileview:4.2.0-SNAPSHOT-RC22"
platform: linux/amd64
environment: environment:
KK_CONTEXT_PATH: "/fileview" KK_CONTEXT_PATH: "/fileview"
KK_OFFICE_PREVIEW_SWITCH_DISABLED: true KK_OFFICE_PREVIEW_SWITCH_DISABLED: true
@ -132,8 +131,7 @@ services:
drawio-export: drawio-export:
container_name: "dootask-drawio-export-${APP_ID}" container_name: "dootask-drawio-export-${APP_ID}"
image: "kuaifan/export-server:latest" image: "kuaifan/export-server:0.0.1"
platform: linux/amd64
networks: networks:
extnetwork: extnetwork:
ipv4_address: "${APP_IPPR}.9" ipv4_address: "${APP_IPPR}.9"

View File

@ -142,6 +142,11 @@ export default {
// //
const cloneParams = $A.cloneJSON(params) const cloneParams = $A.cloneJSON(params)
return new Promise(async (resolve, reject) => { return new Promise(async (resolve, reject) => {
// 判断服务器地址
if (/^https*:\/\/public\//.test(params.url)) {
reject({ret: -1, data: {}, msg: "No server address"})
return
}
// 加密传输 // 加密传输
const encrypt = [] const encrypt = []
if (params.encrypt === true) { if (params.encrypt === true) {