Why is the return value empty? What's wrong? Could you please help me correct it? Thank you.
手机用户1589615777
手机用户1589615777 2020-05-16 16:01:27
0
1
1415

<?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']; }}

Please help me, please

手机用户1589615777
手机用户1589615777

reply all(1)
秋香姐家的小书童

What your api returns is not json, then if you use json_decode after getting the data, it will definitely be a null value

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template