seven 2 months ago
parent
commit
8665eba035
1 changed files with 2 additions and 2 deletions
  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();