@@ -7,7 +7,14 @@ class PayNoticeController extends Controller
{
public function bytedance()
- dd(1);
+ try {
+
+ $app = $this->getByteDanceFactory();
+ $app->notify();
+ }catch (\Exception $e){
+ }
}
@@ -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'); //字节跳动支付回调