wx.invoke(
"thirdPartyOpenPage",
{
oaType: "10001", // String
templateId:
"***", // 自建应用 模板id String
thirdNo: "333333", // String
extData: {
fieldList: [
{
title: "采购类型",
type: "text",
value: "市场活动",
},
{
title: "订单链接",
type: "link",
value: "https://work.weixin.qq.com",
},
],
},
},
function (res) {
// 输出接口的回调信息
console.log(res);//这里返回:err_msg: "thirdPartyOpenPage:fail_ticket no available more info at https://open.work.weixin.qq.com/devtool/query?e=42012 maybe not added to jsApiList in wx.config"
}
);
1
目前整个流程是这样的:根据接口后台返回响应的签名之后调用wx.config,jsApiList:["checkJsApi","agentConfig","thirdPartyOpenPage","selectExternalContact","invoke"]
wx.ready检测JS接口 wx.checkJsApi({
jsApiList: ["agentConfig"],
success: function (item) {}
在成功回调里调用 wx.invoke("agentConfig", ...相关签名id等)
然后检测JS接口 thirdPartyOpenPage为true
调用wx.invoke("thirdPartyOpenPage",
就出现上面接口的回调错误 err_msg: "thirdPartyOpenPage:fail_ticket no available more info at https://open.work.weixin.qq.com/devtool/query?e=42012 maybe not added to jsApiList in wx.config"
使用手机为 华为mate30pro 企业微信版本为3.1.8(16713)
后端已使用agentid对应的应用去获取access_token 返回的签名等信息。
求告知解决方法或问题所在!
兄弟你解决了吗?我也碰到这个问题了,四处没找到可以怎么解决,也验签了没问题
兄弟你解决了吗