提交 5ec71a3a 编写于 作者: 雪洛's avatar 雪洛

feat: 兼容uni-app-x的客户端平台

上级 e76d6a4c
...@@ -95,7 +95,7 @@ class UniID { ...@@ -95,7 +95,7 @@ class UniID {
if (!appConfig) { if (!appConfig) {
throw new Error(`Config for current app (${this._clientInfo.appId}) was not found, please check your config file or client appId`) 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' this._clientInfo.platform = 'app'
} }
if (this._clientInfo.platform === 'h5') { if (this._clientInfo.platform === 'h5') {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册