You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

46 lines
1.3 KiB

  1. <?php
  2. /**
  3. * 初始化数据获取
  4. * ============================================================================
  5. * * 版权所有 蜘蛛出行 * *
  6. * 网站地址: http://www.zhizhuchuxing.com
  7. * ----------------------------------------------------------------------------
  8. * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和
  9. * 使用;不允许对程序代码以任何形式任何目的的再发布。
  10. * ============================================================================
  11. * Author By: 娄梦宁
  12. * PhpStorm AroundService.php
  13. * Create By 2016/11/10 13:26 $
  14. */
  15. namespace Trip\Service;
  16. use Trip\Model\TripModel;
  17. use Util\Util\Util;
  18. class TripService
  19. {
  20. /**
  21. * Function Description:获取初始化数据
  22. * Function Name: getAll
  23. *
  24. * @return array
  25. *
  26. * @author 娄梦宁
  27. */
  28. static function getAll(){
  29. $dataAll=new TripModel();
  30. $recomList=$dataAll->getRecom();
  31. $rimList=$dataAll->getAroud();
  32. $dsn=$dataAll->getDsn();
  33. $scenicList=$dataAll->getScenic();
  34. $data['recomList'] = $recomList['data'];
  35. $data['rimList'] = $rimList['data'];
  36. $data['dsn'] = $dsn['data'];
  37. $data['scenicList'] = $scenicList['data'];
  38. return Util::returnArrSu('', $data);
  39. }
  40. }