|
|
@@ -0,0 +1,28 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+namespace app\controller\api;
|
|
|
+
|
|
|
+use app\extra\basic\Base;
|
|
|
+use LinFly\Annotation\Attributes\Route\Controller;
|
|
|
+use LinFly\Annotation\Attributes\Route\PostMapping;
|
|
|
+use support\Request;
|
|
|
+use support\Response;
|
|
|
+
|
|
|
+
|
|
|
+#[Controller("/notify")]
|
|
|
+class Notify extends Base
|
|
|
+{
|
|
|
+
|
|
|
+ #[PostMapping("douyin")]
|
|
|
+ public function getOrderNotify(Request $request): Response
|
|
|
+ {
|
|
|
+ try {
|
|
|
+ $param = $request->all();
|
|
|
+ echo getDateFull()."===支付返回\n";
|
|
|
+ print_r($param);
|
|
|
+ return success("ok");
|
|
|
+ } catch (\Throwable $th) {
|
|
|
+ return error($th->getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|