Timedtask.php 591 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace app\api\controller;
  3. use AlibabaCloud\Client\AlibabaCloud;
  4. use AlibabaCloud\Client\Exception\ClientException;
  5. use AlibabaCloud\Client\Exception\ServerException;
  6. use think\Db;
  7. use think\Exception;
  8. /**
  9. * @title 定时任务
  10. * Class Timedtask
  11. * @controller Timedtask
  12. * @group base
  13. */
  14. class Timedtask
  15. {
  16. /**
  17. * @title 取消订单定时任务
  18. * @desc 十五分钟内未支付的自动取消
  19. * @author qc
  20. * @url /api/Timedtask/cancelGoodsOrder
  21. * @method GET
  22. */
  23. public function cancelGoodsOrder(){
  24. cancel_goods_order();
  25. }
  26. }