diff --git a/lib/index.js b/lib/index.js index 9f64b93..336d8d2 100644 --- a/lib/index.js +++ b/lib/index.js @@ -104,10 +104,7 @@ export async function checkUpdate(APPKEY, isRetry) { ); } if (typeof APPKEY !== 'string') { - throw new Error('未检测到合法的APPKEY,请查看update.json文件是否正确生成'); - } - if (typeof packageVersion !== 'string') { - throw new Error('未检测到原生版本号'); + throw new Error('未检查到合法的APPKEY,请查看update.json文件是否正确生成'); } logger('checking update'); let resp;