- 扫微信生成的带参数的二维码,还是同一个的返回信息,为什么第一次的返回signature加密后不对?
[2023-10-25 11:04:17] {"signature":"e73d0a71c1e7ededb4de7ec96c79896510dc1adb","timestamp":"1698203056","nonce":"827472227","openid":"oLQdT1v-2v5GSDAq-aEw3mUkWTrc"} -------------------------------------------------- [2023-10-25 11:04:17] 网站生成signature字符串:71005ca2660334e0b7606c20b3007628868b7cdb -------------------------------------------------- [2023-10-25 11:04:17] <xml><ToUserName><![CDATA[gh_5b1737d42827]]></ToUserName> <FromUserName><![CDATA[oLQdT1v-2v5GSDAq-aEw3mUkWTrc]]></FromUserName> <CreateTime>1698203056</CreateTime> <MsgType><![CDATA[event]]></MsgType> <Event><![CDATA[SCAN]]></Event> <EventKey><![CDATA[58219]]></EventKey> <Ticket><![CDATA[gQHN7zwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAyYlRmcDF2Sjdkam0xb3JRMU5CY3IAAgSbeThlAwSAOgkA]]></Ticket> </xml> 这是一次的推送 [2023-10-25 11:05:13] {"signature":"ee59d4215bded947203c765b8cccab2bd0bf25f9","timestamp":"1698203113","nonce":"1533781521","openid":"oLQdT1v-2v5GSDAq-aEw3mUkWTrc"} -------------------------------------------------- [2023-10-25 11:05:13] 网站生成signature字符串:ee59d4215bded947203c765b8cccab2bd0bf25f9 -------------------------------------------------- [2023-10-25 11:05:13] <xml><ToUserName><![CDATA[gh_5b1737d42827]]></ToUserName> <FromUserName><![CDATA[oLQdT1v-2v5GSDAq-aEw3mUkWTrc]]></FromUserName> <CreateTime>1698203113</CreateTime> <MsgType><![CDATA[event]]></MsgType> <Event><![CDATA[SCAN]]></Event> <EventKey><![CDATA[58219]]></EventKey> <Ticket><![CDATA[gQHN7zwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAyYlRmcDF2Sjdkam0xb3JRMU5CY3IAAgSbeThlAwSAOgkA]]></Ticket> </xml> 这是第二次推送到我服务器端的,为什么它会一会儿对一会儿不对? 这是我扫描的微信生成的带参数的二维码,还是同一个的返回信息,为什么第一次的返回signature加密后不对?
2023-10-25 - 微信扫描带参数二维码事件,接收到的signature不定时的错误?
[2023-10-25 11:04:17] {"signature":"e73d0a71c1e7ededb4de7ec96c79896510dc1adb","timestamp":"1698203056","nonce":"827472227","openid":"oLQdT1v-2v5GSDAq-aEw3mUkWTrc"} -------------------------------------------------- [2023-10-25 11:04:17] 网站生成signature字符串:71005ca2660334e0b7606c20b3007628868b7cdb -------------------------------------------------- [2023-10-25 11:04:17] <xml><ToUserName><![CDATA[gh_5b1737d42827]]></ToUserName> <FromUserName><![CDATA[oLQdT1v-2v5GSDAq-aEw3mUkWTrc]]></FromUserName> <CreateTime>1698203056</CreateTime> <MsgType><![CDATA[event]]></MsgType> <Event><![CDATA[SCAN]]></Event> <EventKey><![CDATA[58219]]></EventKey> <Ticket><![CDATA[gQHN7zwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAyYlRmcDF2Sjdkam0xb3JRMU5CY3IAAgSbeThlAwSAOgkA]]></Ticket> </xml> 这是一次的推送 [2023-10-25 11:05:13] {"signature":"ee59d4215bded947203c765b8cccab2bd0bf25f9","timestamp":"1698203113","nonce":"1533781521","openid":"oLQdT1v-2v5GSDAq-aEw3mUkWTrc"} -------------------------------------------------- [2023-10-25 11:05:13] 网站生成signature字符串:ee59d4215bded947203c765b8cccab2bd0bf25f9 -------------------------------------------------- [2023-10-25 11:05:13] <xml><ToUserName><![CDATA[gh_5b1737d42827]]></ToUserName> <FromUserName><![CDATA[oLQdT1v-2v5GSDAq-aEw3mUkWTrc]]></FromUserName> <CreateTime>1698203113</CreateTime> <MsgType><![CDATA[event]]></MsgType> <Event><![CDATA[SCAN]]></Event> <EventKey><![CDATA[58219]]></EventKey> <Ticket><![CDATA[gQHN7zwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAyYlRmcDF2Sjdkam0xb3JRMU5CY3IAAgSbeThlAwSAOgkA]]></Ticket> </xml> 这是第二次推送到我服务器端的,为什么它会一会儿对一会儿不对?
2023-10-25 - 微信扫码时间微信服务器推送的signature生成不定时异常?
[2023-10-25 11:04:17] {"signature":"e73d0a71c1e7ededb4de7ec96c79896510dc1adb","timestamp":"1698203056","nonce":"827472227","openid":"oLQdT1v-2v5GSDAq-aEw3mUkWTrc"} -------------------------------------------------- [2023-10-25 11:04:17] 网站生成signature字符串:71005ca2660334e0b7606c20b3007628868b7cdb -------------------------------------------------- [2023-10-25 11:04:17] <xml><ToUserName><![CDATA[gh_5b1737d42827]]></ToUserName> <FromUserName><![CDATA[oLQdT1v-2v5GSDAq-aEw3mUkWTrc]]></FromUserName> <CreateTime>1698203056</CreateTime> <MsgType><![CDATA[event]]></MsgType> <Event><![CDATA[SCAN]]></Event> <EventKey><![CDATA[58219]]></EventKey> <Ticket><![CDATA[gQHN7zwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAyYlRmcDF2Sjdkam0xb3JRMU5CY3IAAgSbeThlAwSAOgkA]]></Ticket> </xml> 这是一次的推送 [2023-10-25 11:05:13] {"signature":"ee59d4215bded947203c765b8cccab2bd0bf25f9","timestamp":"1698203113","nonce":"1533781521","openid":"oLQdT1v-2v5GSDAq-aEw3mUkWTrc"} -------------------------------------------------- [2023-10-25 11:05:13] 网站生成signature字符串:ee59d4215bded947203c765b8cccab2bd0bf25f9 -------------------------------------------------- [2023-10-25 11:05:13] <xml><ToUserName><![CDATA[gh_5b1737d42827]]></ToUserName> <FromUserName><![CDATA[oLQdT1v-2v5GSDAq-aEw3mUkWTrc]]></FromUserName> <CreateTime>1698203113</CreateTime> <MsgType><![CDATA[event]]></MsgType> <Event><![CDATA[SCAN]]></Event> <EventKey><![CDATA[58219]]></EventKey> <Ticket><![CDATA[gQHN7zwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAyYlRmcDF2Sjdkam0xb3JRMU5CY3IAAgSbeThlAwSAOgkA]]></Ticket> </xml> 这是第二次推送到我服务器端的,为什么它会一会儿对一会儿不对?
2023-10-25 - 微信公众号扫码登录不定时失败
在使用微信公众号扫码登录的时候,获取access_token后获取扫描二维码,access_token和二维码获取无误。 access_token设置了两小时的缓存失效时间 但是使用微信扫码后不定时会出现微信服务器发送到我的服务器的数据解码失败。
2023-10-23 - 微信公众号设置回复信息,但是收到微信发的信息会不定时的验签失败?
我在使用微信公众号设置回复信息,但是收到微信发的信息会不定时的验签失败? $xmlStr = file_get_contents('php://input'); pr_log($xmlStr,'wx_push'); if (empty($xmlStr)) { return 'false'; } // 解析该xml字符串,利用simpleXML libxml_disable_entity_loader(true); //禁止xml实体解析,防止xml注入 $xml = simplexml_load_string($xmlStr, 'SimpleXMLElement', LIBXML_NOCDATA); $data = json_decode(json_encode($xml),true); //判断该消息的类型,通过元素MsgType pr_log('xml_data','wx_push'); pr_log($data,'wx_push'); if($list_sha_1 != $signature){ pr_log('$signature验签error','wx_push'); $str = "<xml> <ToUserName><![CDATA[".$data['FromUserName']."]]></ToUserName> <FromUserName><![CDATA[gh_5b1737d42827]]></FromUserName> <CreateTime>".time()."</CreateTime> <MsgType><![CDATA[text]]></MsgType> <Content><![CDATA[请重新扫码]]></Content> </xml>"; var_dump($str);die; // return 'error'; } [图片] [图片] 这里是我扫码的一些回复,一个问题是扫公众号的二维码微信发送给我的信息不定时会验签失败还一个就是验签成功之后我页不知道为啥会一次发送很多模板消息,而且与我扫码的次数不一定相等,可能会多可能会少(此处说的是从上一次扫码验签成功到本次验签成功期间的扫码)
2023-09-06 - 微信公众号服务器配置偶尔成功和失败?
我在微信公众号服务器配置走通之后微信公众号服务器配置偶尔失败,并且连续扫码失败几次之后会成功,为什么?并不是只有失败,有点像是随机的,验签会成功
2023-09-02 - 'WeChatPay\Builder' not found in
composer require wechatpay/wechatpay安装的微信支付 执行 CertificateDownloader.php -k ${apiV3key} -m ${mchId} -f ${mchPrivateKeyFilePath} -s ${mchSerialNo} -o ${outputFilePath} 时候报错,找不到这个类,请问这个应该如何解决?
2023-06-30 - 微信沙箱环境无法访问咯?
Client error: `POST https://api.mch.weixin.qq.com/sandboxnew/pay/getsignkey` resulted in a `404 Not Found` response:<html><head><title>404 Not Found</title></head><body bgcolor="white"><center><h1>404 Not Found</h1></center><hr> (truncated...)
2023-06-28