- 如何检验unionid属于哪个应用?
我们犯了个错误,用户登录不同的地方使用了不同的开放平台帐号,现在要想办法辨别出来,对一部分用户进行重新授权处理。。。 有没人知道有什么办法可以检验的?
2023-08-01 - 小程序消息推送开启后,服务端收到POST为空
问题已解决。 ------------------------------------------- 问题描述: 1、已经成功开启消息推送功能 2、用户发送客服消息无异常提示 [图片] 3、服务端记录请求日志,POST内容为空 Time:2022-01-05 03:29:49 Log:array ( 0 => //SERVER日志 array ( 'USER' => 'www', 'SCRIPT_NAME' => '/index.php', 'REQUEST_URI' => '/magic/push?signature=3e529bd1b49d3eb9ee24d64448bbf9906f67f8e8×tamp=1641349789&nonce=449174906', 'QUERY_STRING' => 'signature=3e529bd1b49d3eb9ee24d64448bbf9906f67f8e8×tamp=1641349789&nonce=449174906', 'REQUEST_METHOD' => 'POST', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REDIRECT_QUERY_STRING' => 'signature=3e529bd1b49d3eb9ee24d64448bbf9906f67f8e8×tamp=1641349789&nonce=449174906', 'REDIRECT_URL' => '/magic/push', 'REMOTE_PORT' => '40652', 'SERVER_ADMIN' => 'webmasterexample.com', 'CONTEXT_PREFIX' => '', 'REQUEST_SCHEME' => 'https', 'REMOTE_ADDR' => '162.62.81.123', 'SERVER_PORT' => '443', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_SIGNATURE' => 'Apache Server at nm.dasio.com Port 443 ', 'CONTENT_TYPE' => 'application/json', 'CONTENT_LENGTH' => '184', 'HTTP_PRAGMA' => 'no-cache', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'Mozilla/4.0', 'proxy-nokeepalive' => '1', 'HTTPS' => 'on', 'gzip-only-text/html' => '1', 'REDIRECT_STATUS' => '200', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_gzip-only-text/html' => '1', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => 1641349789.802539, 'REQUEST_TIME' => 1641349789, ), 1 => //GET内容 array ( 'signature' => '3e529bd1b49d3eb9ee24d64448bbf9906f67f8e8', 'timestamp' => '1641349789', 'nonce' => '449174906', ), 2 => //POST内容 array ( ), ) 4、通过其他方式POST,可以获取到请求参数 Time:2022-01-05 03:39:59 Log:array ( 0 => //SERVER array ( 'USER' => 'www', 'SCRIPT_NAME' => '/index.php', 'REQUEST_URI' => '/magic/push', 'QUERY_STRING' => '', 'REQUEST_METHOD' => 'POST', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REDIRECT_URL' => '/magic/push', 'REMOTE_PORT' => '20015', 'SERVER_ADMIN' => 'webmasterexample.com', 'CONTEXT_PREFIX' => '', 'REQUEST_SCHEME' => 'https', 'REMOTE_ADDR' => '139.198.172.247', 'SERVER_PORT' => '443', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_SIGNATURE' => 'Apache Server at nm.dasio.com Port 443 ', 'CONTENT_TYPE' => 'multipart/form-data; boundary=------------------------1acef84b75fbce0c', 'CONTENT_LENGTH' => '141', 'HTTP_COOKIE' => '', 'HTTP_ACCEPT' => '*/*', 'proxy-nokeepalive' => '1', 'HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'REDIRECT_HTTPS' => 'on', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => 1641350399.545334, 'REQUEST_TIME' => 1641350399, ), 1 => //GET array ( ), 2 => //POST array ( 'test' => 'ok', ), )
2022-01-05 - 无法收到小程序消息推送?
小程序开启消息推送后,用户发送客服消息时,服务端无法收到POST信息,只能收到GET请求参数如下 'signature' => 'dfff514f229ba95b4f166d3a833367f96b495f66', 'timestamp' => '1641305629', 'nonce' => '1493587840', 测试过URL是正常的可以POST 请问可能是啥原因呢?
2022-01-04