本帖最后由 easeyoo 于 2014-01-16 23:15:20 编辑

解决方案 »

  1.   

    打印$content和$d看有没有数据?有的话结构是什么样的,,,,$traces从何而来?
      

  2.   

    $d = json_decode($content, true);
    $traces = $traces['dataList'];

    $d = json_decode($content, true);
    $traces = $d['dataList'];
      

  3.   

    变量搞错了$traces = $d['dataList']  当然取不到值了
      

  4.   

    谢谢两位的回复,已经成功解决了。 就是$d = json_decode($content, true);
    $traces = $traces['dataList'];
    这出了问题,把,应该是$traces = $d['dataList'];