小程序的消息推送配置好后,URL(服务器地址)配置的后台程序接收不到请求,提示Token校验失败?
发布于 5 年前 作者 kangxia 6953 次浏览 来自 官方Issues

URL(服务器地址)的配置是:http://xxxxxxx/request.php

具体配置如下:

但是提交后,request.php没有接收到任何请求,request.php中的打印日志也没有执行,急需求解!!

测试程序是这样的:

 ob_clean()

printLog(json_encode($_GET));

    /**

     * 打印数据

     * @param  string $txt  日志记录

     * @param  string $file 日志目录

     * @return

     */

    function printLog($txt="",$file=“ceshi.log”){

    $myfile = fopen($file, “a+”);

    $StringTxt = “[”.date(“Y-m-d H:i:s”)."]".$txt."\n";

    fwrite($myfile, $StringTxt);

    fclose($myfile);

    }

我换成CURL去发送GET请求这个地址http://xxxxxxx/request.php,是可以打印日志的,postman也是可以的,有大神指点迷津吗?

回到顶部