$str="ip".$_SERVER["REMOTE_ADDR"]." /n string".$_SERVER["QUERY_STRING"]." /n ---==echstr".$echoStr;
@file_put_contents("./1.txt",$str);
在微信后台提交一次生成一次1.txt的内容,但微信token提示验证失败,使用的是麦当苗儿的那个微信类,在控制器已经定义如下:
<?php
class WxmmAction extends ba
{
public function index()
{
import('@.ORG.Wechat');
$weixin = new Wechat('111weixin');
$data = $weixin->request();
}
}
Wechat.class.php放到了app/lib/ORG目录下,
求助!
最佳答案