Commit 1e4b42f9 by 杨树贤

修改请求方法

parent 067dbc64
Showing with 5 additions and 1 deletions
......@@ -34,7 +34,11 @@ class SkuService extends BaseService
$map['show_status'] = 1;
$map['no_rule'] = 1122;
try {
$return = curl($url, $map, 1);
$client = new Client();
$response = $client->post($url, [
'form_params' => $map
]);
$return = $response->getBody()->getContents();
} catch (\Exception $e) {
return $e->getMessage();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment