CronController.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. * @return \Illuminate\Http\JsonResponse
  33. */
  34. public function pddOrders()
  35. {
  36. CronLogic::pddOrdersLogic();
  37. return $this->success();
  38. }
  39. /**
  40. * 发送通知
  41. * @return \Illuminate\Http\JsonResponse
  42. */
  43. public function sendOrderTemplate()
  44. {
  45. CronLogic::sendOrderTemplateLogic();
  46. return $this->success();
  47. }
  48. /**
  49. * 结算订单佣金
  50. * @return \Illuminate\Http\JsonResponse
  51. */
  52. public function settlementOrderCommission()
  53. {
  54. CronLogic::settlementOrderCommissionLogic();
  55. return $this->success();
  56. }
  57. /**
  58. * 定时打款
  59. * @return \Illuminate\Http\JsonResponse
  60. */
  61. public function transferFinance()
  62. {
  63. CronLogic::transferFinanceLogic();
  64. return $this->success();
  65. }
  66. /**
  67. * 定时退款
  68. * @return \Illuminate\Http\JsonResponse
  69. */
  70. public function callbackCash()
  71. {
  72. CronLogic::callbackCashLogic();
  73. return $this->success();
  74. }
  75. }