3.4.12 -alpha更新到最新版,就报这个错,加了配置也没用
- 发布:2022-05-30 11:16
- 更新:2022-12-26 17:42
- 阅读:2303
产品分类: uniCloud/腾讯云
操作步骤:
预期结果:
正常
正常
实际结果:
Client platform is app, but app-plus was found in config. Please refer to: https://uniapp.dcloud.net.cn/uniCloud/uni-id?id=prefered-app-platform
Client platform is app, but app-plus was found in config. Please refer to: https://uniapp.dcloud.net.cn/uniCloud/uni-id?id=prefered-app-platform
bug描述:
3.4.12 -alpha更新到最新版,就报这个错,加了配置也没用
Client platform is app, but app-plus was found in config. Please refer to: https://uniapp.dcloud.net.cn/uniCloud/uni-id?id=prefered-app-platform
我也遇到了同样的问题.目前没有解决.
我的场景是 新建了一个uni-admin项目,然后将这个项目通过本地android打包成apk.然后apk在android平板上安装.
目前我在 uni_modules\uni-config-center\uniCloud\cloudfunctions\common\uni-config-center\uni-id\config.json 中添加了
配置项: "preferedAppPlatform": "app"
部分配置项如下:
"passwordSecret": "passwordSecret-demo",
"tokenSecret": "tokenSecret-demo",
"tokenExpiresIn": 7200,
"tokenExpiresThreshold": 600,
"passwordErrorLimit": 6,
"bindTokenToDevice": false,
"passwordErrorRetryTime": 3600,
"autoSetInviteCode": false,
"forceInviteCode": false,
"preferedAppPlatform": "app",
"app": {
"tokenExpiresIn": 2592000,
"oauth": {
"weixin": {
"appid": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appid",
"appsecret": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appsecret"
},
"apple": {
"bundleId": "苹果开发者后台获取的bundleId"
}
}
},
在登录之后任然提示:
[uni-id-cf]::Client platform is app, but app-plus was found in config.
Please refer to : https://****
我的Hbuilder X版本: 3.4.14.20220607
深蓝的一片海 (作者)
没看明白是在manifest.json里面加吗
2022-06-07 09:32
DCloud_UNI_Anne
回复 深蓝的一片海: uni-id的config配置文件里添加,详见
2022-06-07 17:06