diff --git a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/lib/utils/qq.js b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/lib/utils/qq.js index ddcdd3c585ad1a3e7138b32212ec4c1d8acbe296..00f556914bb190b644a9d7ea595c6d11a467d78c 100644 --- a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/lib/utils/qq.js +++ b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/lib/utils/qq.js @@ -129,7 +129,7 @@ async function getQQCache ({ const getCacheMethod = qqPlatform === 'mp' ? 'getSessionKey' : 'getUserAccessToken' const userKey = await this.uniOpenBridge[getCacheMethod]({ dcloudAppid: appId, - platform: qqPlatform + '-qq', + platform: 'qq-' + qqPlatform, openid }) if (userKey) { diff --git a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/lib/utils/weixin.js b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/lib/utils/weixin.js index ff1caa00c38fb4cd452fd272df3a8d65d6121374..db762d7a7a3875283342abb8f3384dd33646f441 100644 --- a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/lib/utils/weixin.js +++ b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/lib/utils/weixin.js @@ -165,7 +165,7 @@ async function getWeixinCache ({ const getCacheMethod = weixinPlatform === 'mp' ? 'getSessionKey' : 'getUserAccessToken' const userKey = await this.uniOpenBridge[getCacheMethod]({ dcloudAppid: appId, - platform: weixinPlatform + '-weixin', + platform: 'weixin-' + weixinPlatform, openid }) if (userKey) {