企业微信调用JSSDK wx.agentConfig 签名 安卓正常,IOS失败

1.res.wx.qq.com/wwopen/js/jsapi/jweixin-1.0.0.js

open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js

引入两个js

2.授权url,问题就出现在这 login_url 的最后 #wechat_redirect

window.location.href = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appid}&redirect_uri=${_currentUrl}&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect`;

安卓系统 wx.agentConfig 签名通过,IOS系统 wx.config 签名通过,wx.agentConfig 签名失败

wx.agentConfig的jsApiList中getCurExternalChat这类的jsapi 在wx.Config的jsApiList中没有授权,授权就可以了

wx.config({
jsApiList: ['checkJsApi', 'getCurExternalChat', 'getContext', 'getCurExternalContact']
})
...
 wx.agentConfig({
jsApiList: ['checkJsApi', 'getContext', 'getCurExternalContact']
})
相关推荐
YungFan5 分钟前
iOS开发之网络代码进化史
ios·swift
anguruanjian6 小时前
安固软件指南:确保外发文件安全的全面策略
服务器·网络·安全·企业微信·安固软件
SunshineBrother6 小时前
shell脚本,怎么查找项目中的重复图片
ios
月未央6 小时前
HarmonyOS Next 开发系列:Provider和Consumer状态修饰器实践
ios·harmonyos
北京自在科技1 天前
【Find My功能科普】防盗黑科技如何改变生活?
科技·ios·生活·findmy
水木姚姚2 天前
图形界面控件编程(iOS)
人工智能·python·macos·ios·xcode
书弋江山2 天前
Flutter 调用原生IOS接口
flutter·ios·cocoa
夜猫的兔子2 天前
企业微信console调试
前端·企业微信·conlose
q567315232 天前
使用ASIWebPageRequest库编写Objective-C下载器程序
android·开发语言·macos·ios·objective-c·iphone
星海拾遗2 天前
debug_unpack_ios failed: Exception: Failed to codesign 解决方案(亲测有效)
flutter·ios