@zscreate/zhxy-app-component 1.0.222 → 1.0.223
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -175,6 +175,12 @@ import {downloadFile, getOpenId, toAwait} from "../../utils/util";
|
|
|
175
175
|
title: (e && e.toString()) || '文件上传失败',
|
|
176
176
|
icon: 'none'
|
|
177
177
|
})
|
|
178
|
+
}
|
|
179
|
+
let message = res.message
|
|
180
|
+
try {
|
|
181
|
+
message = decodeURIComponent(message)
|
|
182
|
+
} catch (e) {
|
|
183
|
+
|
|
178
184
|
}
|
|
179
185
|
let uid = String(Math.random()).substr(2) - 0
|
|
180
186
|
let imgObj = {
|
|
@@ -182,7 +188,7 @@ import {downloadFile, getOpenId, toAwait} from "../../utils/util";
|
|
|
182
188
|
key: uid,
|
|
183
189
|
name: that.name,
|
|
184
190
|
status: "success",
|
|
185
|
-
url:
|
|
191
|
+
url: message
|
|
186
192
|
}
|
|
187
193
|
if (that.widget.options.uploadEncrypt) {
|
|
188
194
|
imgObj['fileId'] = res.result.fileId
|
|
@@ -139,7 +139,12 @@ export default {
|
|
|
139
139
|
// })
|
|
140
140
|
for (let i = 0; i < lists.length; i++) {
|
|
141
141
|
|
|
142
|
-
|
|
142
|
+
let { message, result = {}, success } = await this.uploadFilePromise(lists[i].url)
|
|
143
|
+
try {
|
|
144
|
+
message = decodeURIComponent(message)
|
|
145
|
+
} catch (e) {
|
|
146
|
+
|
|
147
|
+
}
|
|
143
148
|
let id = new Date().getTime();
|
|
144
149
|
if (!success) {
|
|
145
150
|
return uni.showToast({
|