Hex 发表于 2013-5-9 12:59:44

我写了一个例子 http://codeigniter.org.cn/forums/thread-16665-1-1.html

小帅 发表于 2013-5-12 17:11:43

Hex 发表于 2013-5-8 13:48 static/image/common/back.gif
log 不是什么软件啊,没有调试工具,微信无法调试,认命吧。。。。

嗯嗯,谢谢你

某某 发表于 2013-7-12 17:11:46

蔣崢 发表于 2013-4-9 18:24 static/image/common/back.gif
调了一下午,终于解决了,微信发送的账号字符往数据库插不进去,需要转换,真是晕死哒。

谢谢楼上二位。 ...

怎么转换呀?

dren_a 发表于 2013-8-1 08:53:37

某某 发表于 2013-7-12 17:11 static/image/common/back.gif
怎么转换呀?

其实就是将json解开。

leec121 发表于 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->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]
查看完整版本: 微信开发