xiaogang 4 years ago
parent
commit
8c63894c2a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/Http/Controllers/Api/PayNotifyController.php

+ 3 - 0
app/Http/Controllers/Api/PayNotifyController.php

xqd xqd
@@ -11,6 +11,7 @@ use App\Services\PayService;
 use Illuminate\Support\Facades\DB;
 use Illuminate\Support\Facades\Log;
 use PHPUnit\Util\Exception;
+use Symfony\Component\HttpFoundation\Request;
 use Yansongda\Pay\Pay;
 
 class PayNotifyController extends Controller
@@ -19,6 +20,8 @@ class PayNotifyController extends Controller
      * 微信支付回调
      */
     public function wx_notify(){
+        Log::info(Request::createFromGlobals()->getContent());
+
         $wxpay = Pay::wechat(PayService::wx_config());
         DB::beginTransaction();
         try{