自定義菜單沒有返回正確json 對錯碼的數(shù)據(jù)包?
自定義菜單,數(shù)據(jù)正確,沒有返回{"errcode":0,"errmsg":"ok"} 這個代碼。返回的是NULL?怎么回事的?
最后代碼:echo $postJson = urldecode(json_encode($postArr));
? ? ? ? ? ? ? ? ?$res=$this->http_curl($url,'post','json',$postJson);
? ? ? ? ? ? ? ? ? var_dump($res);
結(jié)果:{"button":[{"name":"菜單一","type":"click","key":"item1"},{"name":"菜單二","sub_button":[{"name":"歌曲","type":"click","key":"songs"},{"name":"電影","type":"view","url":"http:\/\/NULL
2016-11-14
把echo去掉?