更改下载方法名

This commit is contained in:
super
2026-04-06 22:26:44 +08:00
parent afffb7aad2
commit c9947c4ac8
17 changed files with 1419 additions and 724 deletions

View File

@@ -806,7 +806,7 @@
}
var zipUrl = task.result_paths.zip_url;
var filename = 'brand_task_' + taskId + '.zip';
if (api && api.save_file_from_url) {
if (api && api.save_file_from_url_new) {
a.style.pointerEvents = 'none';
var done = function(ret) {
if (ret && ret.success) {
@@ -817,7 +817,7 @@
a.style.pointerEvents = '';
};
try {
var ret = api.save_file_from_url(zipUrl, filename);
var ret = api.save_file_from_url_new(zipUrl, filename);
if (ret && typeof ret.then === 'function') {
ret.then(done).catch(function(err) { showToast('保存失败:' + (err && err.message || err)); a.style.pointerEvents = ''; });
} else {