CronController.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. }