From 5ec71a3af4cfa8c8c04055ad0f7aa441d27c09ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=BA=9A=E7=90=AA?= Date: Fri, 26 Apr 2024 13:12:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=85=BC=E5=AE=B9uni-app-x=E7=9A=84?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=AB=AF=E5=B9=B3=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 461b3fa..e61a996 100644 --- a/src/index.js +++ b/src/index.js @@ -95,7 +95,7 @@ class UniID { if (!appConfig) { throw new Error(`Config for current app (${this._clientInfo.appId}) was not found, please check your config file or client appId`) } - if (this._clientInfo.platform === 'app-plus') { + if (['app-plus', 'app-android', 'app-ios'].indexOf(this._clientInfo.platform) > -1) { this._clientInfo.platform = 'app' } if (this._clientInfo.platform === 'h5') { -- GitLab