wx.agentConfig在手机端没有任何返回,刷新页面才会成功执行?

小游戏 企业微信 微信支付 小程序 文章 2020-07-30 21:04 1818 0 全屏看文

AI助手支持GPT4.0

wx.agentConfig在手机端没有任何返回,刷新页面才会成功执行?

在wx.ready中执行wx.agentConfig,通过alert确认ready已执行,但是在手机端的企业微信内wx.agentConfig没有任何反应(success和fail中的alert都不执行),必须刷新下页面才能成功。而在pc端的企业微信debug mode下,我注入两个应用权限['shareToExternalContact', 'shareToExternalChat'],但是只有shareToExternalContact成功(通过wx.checkJsApi验证,shareToExternalContact返回true,shareToExternalContact返回false,wx.agentConfig执行结果两个权限都是true,见截图)

pc端wx.checkJsApi的返回↑

pc端wx.agentConfig执行的返回↑

请官方帮忙看下是什么问题,谢谢!

stay wx.ready In the implementation wx.agentConfig , confirm that ready has been executed through alert, but it is in the enterprise wechat on the mobile phone wx.agentConfig There is no response (the alert in success and failure will not be executed). You must refresh the next page to succeed. On the other hand, the application of "toreerncontact mode" on the enterprise side of "toreernpc", 'sharetoexternalchat '], but only sharetoexternalcontact succeeded (via wx.checkJsApi Verify that sharetoexternalcontact returns true and sharetoexternalcontact returns false, wx.agentConfig The execution result shows that both permissions are true, as shown in the screenshot) wx.checkJsApi Return to PC wx.agentConfig Execution of the return ↑ please help to see what the problem is, thank you!

回答:

企业微信运营专员-千夜:

您好,测试了下不会出现agentconfig打印hareToExternalContact 出现上面的情况,这里可以提供下agentconfig的调调用代码片段看下

-EOF-

AI助手支持GPT4.0