fixed post

This commit is contained in:
CHIEFSOFT\ameye
2024-07-06 11:38:32 -04:00
parent b45421c1a7
commit c232333d47
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -419,7 +419,8 @@ abstract class BaseController extends Controller
curl_setopt($curl, CURLOPT_POST, 1);
if ($data)
// curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($data));
// curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($data));
break;
case "PUT":
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "PUT");