WeatherStruct.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. namespace Heanup\Library\WeatherAdapt;
  3. class WeatherStruct
  4. {
  5. public $returnBody = [
  6. 'Weather' => [
  7. [
  8. 'basic' => [
  9. 'location' => '',
  10. 'update' => '',
  11. ],
  12. 'status' => 'ok',
  13. 'air_now_city' => '',
  14. 'alarm' => '',
  15. 'now' => '',
  16. 'daily_forecast' => [
  17. [
  18. "cond_txt_d" => "晴",
  19. "cond_txt_n" => "多云",
  20. "date" => "2019-06-11",
  21. "tmp_max" => "32",
  22. "tmp_min" => "20",
  23. "wind_dir" => "南风",
  24. "wind_sc" => "3-4"
  25. ]],
  26. 'hourly' => [
  27. [
  28. "cond_txt" => "晴",
  29. "time" => "2019-06-11 16:00",
  30. "tmp" => "30"
  31. ]
  32. ],
  33. 'lifestyle' => [
  34. [
  35. "type" => "comf",
  36. "brf" => "较不舒适",
  37. "txt" => "白天天气晴好,明媚的阳光在给您带来好心情的同时,也会使您感到有些热,不很舒适。"
  38. ]
  39. ],
  40. ]
  41. ]
  42. ];
  43. }