xiansin 2 年 前
コミット
4320ac6fd1

+ 8 - 1
server/app/Http/Controllers/V1/PayNoticeController.php

xqd
@@ -7,7 +7,14 @@ class PayNoticeController extends Controller
 {
     public function bytedance()
     {
-        dd(1);
+        try {
+
+            $app = $this->getByteDanceFactory();
+            $app->notify();
+
+        }catch (\Exception $e){
+
+        }
     }
 }
 

+ 1 - 1
server/routes/api.php

xqd
@@ -165,6 +165,6 @@ $api->version('v1', ['namespace' => 'App\Http\Controllers\V1'], function ($api)
     });
 
     $api->get('pay/{pay_id}/query', 'PayController@query'); //字节跳动支付
-    $api->post('pay/bytedance/notify', 'PayNoticeController@bytedance'); //字节跳动支付回调
+    $api->any('pay/bytedance/notify', 'PayNoticeController@bytedance'); //字节跳动支付回调
 
 });