|
@@ -47,16 +47,19 @@ export function obtainEnterpriseWeChatParameters(data = {}) {
|
|
|
signature: res.data.signature, // 必填,签名,见附录-JS-SDK使用权限签名算法
|
|
|
jsApiList: ['selectExternalContact', 'openThirdAppServiceChat', 'openAppManage'], //必填,传入需要使用的接口名称
|
|
|
success: function (result) {
|
|
|
+ console.log(result, '《+========== 成功1')
|
|
|
// wx.agentConfig成功回调后,WWOpenData 才会注入到 window 对象上面
|
|
|
window.WWOpenData.bind(document.querySelector('ww-open-data'))
|
|
|
},
|
|
|
fail: function (res) {
|
|
|
+ console.log(res, '<===== 失败1')
|
|
|
if (res.errMsg.indexOf('function not exist') > -1) {
|
|
|
alert('版本过低请升级')
|
|
|
}
|
|
|
},
|
|
|
})
|
|
|
}).catch(err => {
|
|
|
+ console.log(err, '<===== 失败2')
|
|
|
if (err.errMsg.indexOf('function not exist') > -1) {
|
|
|
alert('版本过低请升级')
|
|
|
}
|