小程序
小游戏
企业微信
微信支付
扫描小程序码分享
通过网页注入config配置信息,打开页面时报错config:fail,Error: invalid signature
检查配置又符合开发文档的规则,请问签名需要哪些几个参数,用哪一个签名工具效验?
网址如下:
https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx5df6163fa4d159ee&redirect_uri=http://www.chinahongtian.panhuaguo.cn/Hotels8jdhlgd.html&response_type=code&scope=snsapi_userinfo&state=appDYwx5df6163fa4d159eeFGfanghaoDY5012#wechat_redirect
3 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
signature是sha1加密吧
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
请求参数如下:
签名串:jsapi_ticket=HoagFKDcsGMVCIY2vOjf9n7gDVaoLsitIX6tKuPOiQieJKOxvDfc8h9MeEEvFN1Xyx9__Ao9UEBrdMRosMQjFQ&noncestr=BC4D475E3A4F47D9AF3346979118AA8D×tamp=1554134421&url=http://www.chinahongtian.panhuaguo.cn/DingDanQueRen.html
网页中注入的CONFIG配置:
<script type="text/javascript">
function pac()
{
wx.config({
debug:true,
appId:'wx5df6163fa4d159ee',
timestamp:'1554134421',
nonceStr:'BC4D475E3A4F47D9AF3346979118AA8D',
signature:'DB91D679FDB470DDD123007C538FDF11',
jsApiList:[
'checkJsApi',
'onMenuShareTimeline',
'onMenuShareAppMessage',
'onMenuShareQQ',
'onMenuShareWeibo',
'onMenuShareQZone',
'hideMenuItems',
'showMenuItems',
'hideAllNonBaseMenuItem',
'showAllNonBaseMenuItem',
'translateVoice',
'startRecord',
'stopRecord',
'onVoiceRecordEnd',
'playVoice',
'onVoicePlayEnd',
'pauseVoice',
'stopVoice',
'uploadVoice',
'downloadVoice',
'chooseImage',
'previewImage',
'uploadImage',
'downloadImage',
'getNetworkType',
'openLocation',
'getLocation',
'hideOptionMenu',
'showOptionMenu',
'closeWindow',
'scanQRCode',
'chooseWXPay',
'openProductSpecificView',
'addCard',
'chooseCard',
'openCard'
]
});
wx.ready(function(){
qzf ()
}
function qzf()
wx.chooseWXPay({
package:'prepay_id=wx020000219640591b432290740798473017',
signType:'MD5',
paySign:'DB91D679FDB470DDD123007C538FDF11',
complete:function (res) {
// 支付成功后的回调函数
//location.href=basePath+'/activityorder/activity-order!list.action?activityId='+activityId;
//location.href="http://www.huyunma.com/jczfsjddlb.html"
</script>
<script src="js/zepto.min.js"></script>
<script src="js/demo.js"> </script>
</html>
您好,请详细描述一下您要调用那个接口,请提供一下您的请求参数。
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
signature是sha1加密吧
请求参数如下:
签名串:jsapi_ticket=HoagFKDcsGMVCIY2vOjf9n7gDVaoLsitIX6tKuPOiQieJKOxvDfc8h9MeEEvFN1Xyx9__Ao9UEBrdMRosMQjFQ&noncestr=BC4D475E3A4F47D9AF3346979118AA8D×tamp=1554134421&url=http://www.chinahongtian.panhuaguo.cn/DingDanQueRen.html
网页中注入的CONFIG配置:
<script type="text/javascript">
function pac()
{
wx.config({
debug:true,
appId:'wx5df6163fa4d159ee',
timestamp:'1554134421',
nonceStr:'BC4D475E3A4F47D9AF3346979118AA8D',
signature:'DB91D679FDB470DDD123007C538FDF11',
jsApiList:[
'checkJsApi',
'onMenuShareTimeline',
'onMenuShareAppMessage',
'onMenuShareQQ',
'onMenuShareWeibo',
'onMenuShareQZone',
'hideMenuItems',
'showMenuItems',
'hideAllNonBaseMenuItem',
'showAllNonBaseMenuItem',
'translateVoice',
'startRecord',
'stopRecord',
'onVoiceRecordEnd',
'playVoice',
'onVoicePlayEnd',
'pauseVoice',
'stopVoice',
'uploadVoice',
'downloadVoice',
'chooseImage',
'previewImage',
'uploadImage',
'downloadImage',
'getNetworkType',
'openLocation',
'getLocation',
'hideOptionMenu',
'showOptionMenu',
'closeWindow',
'scanQRCode',
'chooseWXPay',
'openProductSpecificView',
'addCard',
'chooseCard',
'openCard'
]
});
wx.ready(function(){
qzf ()
});
}
function qzf()
{
wx.chooseWXPay({
timestamp:'1554134421',
nonceStr:'BC4D475E3A4F47D9AF3346979118AA8D',
package:'prepay_id=wx020000219640591b432290740798473017',
signType:'MD5',
paySign:'DB91D679FDB470DDD123007C538FDF11',
complete:function (res) {
// 支付成功后的回调函数
//location.href=basePath+'/activityorder/activity-order!list.action?activityId='+activityId;
//location.href="http://www.huyunma.com/jczfsjddlb.html"
}
});
}
</script>
<script src="js/zepto.min.js"></script>
<script src="js/demo.js"> </script>
</html>
您好,请详细描述一下您要调用那个接口,请提供一下您的请求参数。