Skip to content

Commit 6ffdc27

Browse files
authored
Merge pull request #152 from xudianyang/master
* 修复goConcurrent Get请求的查询参数为string的报错
2 parents e04d0d8 + 780681a commit 6ffdc27

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Client/Http/Client.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,9 @@ public function goConcurrent(array $requests)
584584
}
585585

586586
if ($requests[$key]['method'] == 'GET') {
587+
if (is_array($requests[$key]['data'])) {
588+
$requests[$key]['data'] = http_build_query($requests[$key]['data']);
589+
}
587590
$sendHttpRequests[$key] = $this->getObject(Http::class, [$client, 'GET', $client->urlData['path'], $requests[$key]['data'], $requests[$key]['timeout']]);
588591
}
589592

0 commit comments

Comments
 (0)