收藏
回答

wx.getGroupEnterInfo解密的时候老是返回41003,换其他接口都能解密成功?

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug wx.getGroupEnterInfo 微信iOS客户端 8.0.7 2.18.0

https://developers.weixin.qq.com/miniprogram/dev/api/open-api/group/wx.getGroupEnterInfo.html

调用方法,wx.login({

provider:'weixin',

success:function(loginres){

console.log(loginres.code)

wx.getGroupEnterInfo({

success(res){

console.log(res)

that.encryptedData =res.encryptedData

that.iv = res.iv

if(res.errMsg==="getGroupEnterInfo:fail invalid shareTicket"){

that.show3= true

}else{

uni.request({

url:that.sercUrl+ '&r=group.join',

method:'POST',

data:{

uid:that.uid,

gid:that.gid,

iv:that.iv,

encryptedData:that.encryptedData,

code:loginres.code,

latitude:that.latitude,

longitude:that.longitude,

},

header: {

'content-type': 'application/x-www-form-urlencoded'

},

success:function(e){}}

回答关注问题邀请回答
收藏

1 个回答

  • 一片绿叶
    一片绿叶
    2021-08-27

    模拟器访问可以成功,手机上访问就-41003

    2021-08-27
    有用
    回复
登录 后发表内容