手机用户15896157772020-05-16 16:01:27 0 1 445
<?phpinclude "wechat.class.php";function getda($w){ $r=file_get_content("http://api.lyoo.xyz/xiaochengxu/chati.php?w=".$w); $s=json_decode($r,true); if($s['code']==200) { $tm=$s['tm']; $da=$s['da']; return ":$tm"."\n".":$da"."\n".; } else{ return $s['msg']; }}
求大佬帮忙看看
秋香姐家的小书童 2020-05-18 08:34:271楼
你这个api返回的不是json ,那么你拿到数据 后再用json_decode就肯定是空值 了
赞 +0添加回复