seven преди 2 месеца
родител
ревизия
8665eba035
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      app/Services/Payment/SanJinService.php

+ 2 - 2
app/Services/Payment/SanJinService.php

@@ -79,9 +79,9 @@ class SanJinService extends BaseService
 
         $client = self::getClient();
         $response = $client->post('api/pay', [
-                'json' => $data,
+                'form_params' => $data,
                 'headers' => [
-                    'Content-Type' => 'application/json',
+                    'Content-Type' => 'application/x-www-form-urlencoded',
                 ]
             ]);
         $body = $response->getBody();