CronController.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?php
  2. namespace App\Http\Controllers\Cron;
  3. use App\Http\Bean\Util\Jutuike\GetOrderListParamBean;
  4. use App\Http\Controllers\BaseController;
  5. use App\Http\Logic\Cron\CronLogic;
  6. use App\Http\Utils\Jutuike\JutuikeUtil;
  7. /**
  8. * 定时任务控制器
  9. * Class CronController
  10. * @package App\Http\Controllers\Cron
  11. */
  12. class CronController extends BaseController
  13. {
  14. /**
  15. * 获取美团订单
  16. */
  17. public function meituanOrders()
  18. {
  19. CronLogic::meituanOrderslogic();
  20. return $this->success();
  21. }
  22. /**
  23. * 获取聚推客订单
  24. */
  25. public function jutuikeOrders()
  26. {
  27. $datas = CronLogic::jutuikeOrdersLogic();
  28. return $this->success($datas);
  29. }
  30. /**
  31. * 定时获取淘宝订单
  32. */
  33. public function taobaoOrders()
  34. {
  35. CronLogic::taobaoOrdersLogic();
  36. return $this->success();
  37. }
  38. /**
  39. * 获取拼多多订单
  40. * @return \Illuminate\Http\JsonResponse
  41. */
  42. public function pddOrders()
  43. {
  44. CronLogic::pddOrdersLogic();
  45. return $this->success();
  46. }
  47. /**
  48. * 发送通知
  49. * @return \Illuminate\Http\JsonResponse
  50. */
  51. public function sendOrderTemplate()
  52. {
  53. CronLogic::sendOrderTemplateLogic();
  54. return $this->success();
  55. }
  56. /**
  57. * 结算订单佣金
  58. * @return \Illuminate\Http\JsonResponse
  59. */
  60. public function settlementOrderCommission()
  61. {
  62. CronLogic::settlementOrderCommissionLogic();
  63. return $this->success();
  64. }
  65. /**
  66. * 定时打款
  67. * @return \Illuminate\Http\JsonResponse
  68. */
  69. public function transferFinance()
  70. {
  71. CronLogic::transferFinanceLogic();
  72. return $this->success();
  73. }
  74. /**
  75. * 定时退款
  76. * @return \Illuminate\Http\JsonResponse
  77. */
  78. public function callbackCash()
  79. {
  80. CronLogic::callbackCashLogic();
  81. return $this->success();
  82. }
  83. }