25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

OrderlistService.php 1.3 KiB

3 년 전
12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. *
  4. * ============================================================================
  5. * * 版权所有 蜘蛛出行 * *
  6. * 网站地址: http://www.zhizhuchuxing.com
  7. * ----------------------------------------------------------------------------
  8. * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和
  9. * 使用;不允许对程序代码以任何形式任何目的的再发布。
  10. * ============================================================================
  11. * Author By: 娄梦宁
  12. * PhpStorm OrderlistService.php
  13. * Create By 2016/11/11 10:28 $
  14. */
  15. namespace Order\Service;
  16. use Base\Tool\LoginTool;
  17. use Order\Model\OrderlistModel;
  18. class OrderlistService
  19. {
  20. public function getmyorder()
  21. {
  22. $result = new OrderlistModel();
  23. $userId =LoginTool::$userId;
  24. $results = $result->getordering($userId);
  25. return $results;
  26. }
  27. public function getOrder($order_id)
  28. {
  29. $result = new OrderlistModel();
  30. $results = $result->getOrderall($order_id);
  31. return $results;
  32. }
  33. public function cancelticket($order_id, $user_id)
  34. {
  35. $result = new OrderlistModel();
  36. $results = $result->cancel_order($order_id, $user_id);
  37. return $results;
  38. }
  39. }