From 1bcffc1dd61b847d4e44ad8fc542df7329ee5f9e Mon Sep 17 00:00:00 2001 From: tokumeikoi Date: Thu, 6 Jan 2022 03:22:14 +0800 Subject: [PATCH] update: mgate sdk --- app/Payments/MGate.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Payments/MGate.php b/app/Payments/MGate.php index 9cf7dddd..147c4939 100644 --- a/app/Payments/MGate.php +++ b/app/Payments/MGate.php @@ -50,6 +50,7 @@ class MGate { $params['sign'] = md5($str); $curl = new Curl(); $curl->setUserAgent('MGate'); + $curl->setOpt(CURLOPT_SSL_VERIFYPEER, 0); $curl->post($this->config['mgate_url'] . '/v1/gateway/fetch', http_build_query($params)); $result = $curl->response; if (!$result) {