首页 >社区问答列表 >为什么返回值为空?哪里错了,麻烦大佬帮忙改改,谢谢。

为什么返回值为空?哪里错了,麻烦大佬帮忙改改,谢谢。

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

求大佬帮忙看看