Notify.php 628 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace app\controller\api;
  3. use app\extra\basic\Base;
  4. use LinFly\Annotation\Attributes\Route\Controller;
  5. use LinFly\Annotation\Attributes\Route\PostMapping;
  6. use support\Request;
  7. use support\Response;
  8. #[Controller("/notify")]
  9. class Notify extends Base
  10. {
  11. #[PostMapping("douyin")]
  12. public function getOrderNotify(Request $request): Response
  13. {
  14. try {
  15. $param = $request->all();
  16. echo getDateFull()."===支付返回\n";
  17. print_r($param);
  18. return success("ok");
  19. } catch (\Throwable $th) {
  20. return error($th->getMessage());
  21. }
  22. }
  23. }