log 不是什么软件啊,没有调试工具,微信无法调试,认命吧。。。。
嗯嗯,谢谢你 蔣崢 发表于 2013-4-9 18:24 static/image/common/back.gif
调了一下午,终于解决了,微信发送的账号字符往数据库插不进去,需要转换,真是晕死哒。
谢谢楼上二位。 ...
怎么转换呀?
某某 发表于 2013-7-12 17:11 static/image/common/back.gif
怎么转换呀?
其实就是将json解开。
public function response() {
$this->load->library("weixin_tpl", "", 'wx');
$this->load->model('user_model');
$postStr = $GLOBALS["HTTP_RAW_POST_DATA"];
if (!empty($postStr)) {
$postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);
$this->wx->fromUsername = $postObj->FromUserName;
$this->wx->toUsername = $postObj->ToUserName;
$this->wx->keyword = trim($postObj->Content);
$this->wx->MsgType = $postObj->MsgType;
$this->wx->PicUrl = $postObj->PicUrl;
$this->wx->Event = $postObj->Event;
$this->wx->time = time();
}
$user = $this->user_model->get_user_by_weixin_id($this->wx->fromUsername);
....
我也出现这个问题..请问怎么解决{:soso_e110:}?
json解开?是什么意思啊?
页:
1
[2]