ThinkPHP實現天氣預報接口

API 說明 http://IP/weather/100100001 根據 citycode 獲取城市天氣信息(JSON 格式) 返回:{「code」:200,「weather_info」:「sunny」} code 200表示請求正確,code 404表示請求錯誤 <?php namespace app\api\model; use think\Model; use think\Db; /
相關文章
相關標籤/搜索