mirror of
https://gitcode.com/github-mirrors/react-native-update-cli.git
synced 2025-11-08 10:15:47 +08:00
add version id null
This commit is contained in:
@@ -74,9 +74,12 @@ async function query(url, options) {
|
||||
}
|
||||
|
||||
if (resp.status !== 200) {
|
||||
throw Object.assign(new Error(json.message || json.error), {
|
||||
status: resp.status,
|
||||
});
|
||||
throw Object.assign(
|
||||
new Error(json.message || json.error || resp.statusText),
|
||||
{
|
||||
status: resp.status,
|
||||
},
|
||||
);
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
||||
@@ -124,7 +124,10 @@ export const commands = {
|
||||
options.platform || (await question('平台(ios/android):')),
|
||||
);
|
||||
const { appId } = await getSelectedApp(platform);
|
||||
const versionId = options.versionId || (await chooseVersion(appId)).id;
|
||||
let versionId = options.versionId || (await chooseVersion(appId)).id;
|
||||
if (versionId === 'null') {
|
||||
versionId = null;
|
||||
}
|
||||
|
||||
let pkgId;
|
||||
let pkgVersion = options.packageVersion;
|
||||
|
||||
Reference in New Issue
Block a user