json_decode($str,true)的结果为null

        //$result为传进来的json值
        $result = $this->params['auth_result'];
       //html_entity_decode进行HTML 实体转换为字符
       //stripslashes() 函数的作用是删除反斜杠
        $info = stripslashes(html_entity_decode($result));
        $resultCode = json_decode($info,true);        

  

猜你喜欢

转载自www.cnblogs.com/guoxiaoyu/p/10710286.html