This commit is contained in:
2025-08-11 20:24:58 +08:00
parent 0ed33bd451
commit 0dc3605861
3 changed files with 151 additions and 130 deletions

View File

@@ -137,7 +137,7 @@ const command = new Command('deploy')
version: version,
});
if (res2.code !== 200) {
console.error(chalk.red('查询应用版本失败'), res2.message);
console.error(chalk.red('查询应用版本失败'), res2.message, key);
return;
}
// const { id, data, ...rest } = res.data?.app || {};
@@ -253,8 +253,7 @@ const uploadFiles = async (files: string[], directory: string, opts: UploadFileO
if (opts.noCheckAppFiles) {
url.searchParams.append('noCheckAppFiles', 'true');
}
// return upload({ url: url, form: form, token: token });
return { code: 200 };
return upload({ url: url, form: form, token: token });
};
app.addCommand(command);