|
发表于 2014-3-28 11:16:54
|
显示全部楼层
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->icUrl = $postObj->icUrl;
$this->wx->Event = $postObj->Event;
$this->wx->time = time();
}
$user = $this->user_model->get_user_by_weixin_id($this->wx->fromUsername);
....
我也出现这个问题..请问怎么解决{:soso_e110:}?
json解开?是什么意思啊? |
|