abstract:<?php include 'function.php'; $url = "http://v.juhe.cn/weather/citys"; $params = array( "key" => "
<?php include 'function.php'; $url = "http://v.juhe.cn/weather/citys"; $params = array( "key" => "db741b7e6bcb5d461ce892c1f16040fd" ); $paramstring = http_build_query($params); $content = juheCurl($url, $paramstring); $result = json_decode($content, true); if ($result) { return_json(0,$result); } else { return_json(1,'接口出错'); }
Correcting teacher:查无此人Correction time:2019-02-27 11:21:31
Teacher's summary:完成的不错。php代码写到方法里,方便调用。不可能一个方法一个文件。继续加油