diff --git a/app/Http/Controllers/Customer/PayCallbackController.php b/app/Http/Controllers/Customer/PayCallbackController.php index e968ce3..980bb07 100644 --- a/app/Http/Controllers/Customer/PayCallbackController.php +++ b/app/Http/Controllers/Customer/PayCallbackController.php @@ -10,10 +10,10 @@ use Illuminate\Support\Facades\Log; class PayCallbackController extends Controller { public function index() { - $notify = new \NotifyPub(); - //存储微信的回调 $xml = isset($GLOBALS['HTTP_RAW_POST_DATA']) ? $GLOBALS['HTTP_RAW_POST_DATA'] : file_get_contents("php://input"); Log::info($xml); + $notify = new \NotifyPub(); + //存储微信的回调 $notify->saveData($xml); //验证签名,并回应微信。