TaskController.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. namespace App\Http\Controllers\Api;
  3. use App\Services\MemberService;
  4. use App\Services\OrdersService;
  5. /**
  6. * 计划任务调度控制器
  7. * @author wesmiler
  8. * @since 2020/11/10
  9. * Class TaskController
  10. * @package App\Http\Controllers
  11. */
  12. class TaskController extends BaseController
  13. {
  14. /**
  15. * 构造函数
  16. * @author wesmiler
  17. * @since 2020/11/11
  18. * TaskController constructor.
  19. */
  20. public function __construct()
  21. {
  22. parent::__construct();
  23. $this->orderService = new OrdersService();
  24. $this->memberService = new MemberService();
  25. }
  26. /**
  27. * 商城支付失败订单处理
  28. * @return array
  29. */
  30. public function orderCancel(){
  31. $this->orderService->orderCancel();
  32. return message(MESSAGE_OK, true);
  33. }
  34. /**
  35. * 会员奖励
  36. * @return array
  37. */
  38. public function vipAward(){
  39. $this->memberService->vipAward();
  40. return message(MESSAGE_OK, true);
  41. }
  42. /**
  43. * 屏幕控制队列
  44. * @return array
  45. */
  46. public function screenQueen(){
  47. return message(MESSAGE_OK, true);
  48. }
  49. }