From 2a1915c50c415db4a0634caac2340d6e7437d535 Mon Sep 17 00:00:00 2001 From: sunnylqm Date: Tue, 3 Aug 2021 13:28:39 +0800 Subject: [PATCH] Revert "Check packageVersion" This reverts commit ff67829a270069ec991ab6725948961166d930d2. --- lib/index.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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;