Skip to content

Commit

Permalink
fix http request.
Browse files Browse the repository at this point in the history
  • Loading branch information
iMactool committed Aug 22, 2022
1 parent 42c1ef1 commit b0bd355
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/Core/BaseService.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ public function httpClient()
*/
public function get($endpoint, $query = [], $headers = [])
{
// $query = $this->generateParams($endpoint, $query);
if ($this->clodEntry){
$headers = $this->generateCloudHeader($headers);
}
return $this->httpClient()->request('get', $endpoint, [
'headers' => $headers,
'query' => $query,
Expand Down
2 changes: 1 addition & 1 deletion src/Mixed/Mixed.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public function refreshOssImg(string $photoUrl)
{
$params['photoUrl'] = $photoUrl;
try {
return $this->basePost("/gateway/rivers/oss/newPath",$params);
return $this->get("/gateway/rivers/oss/newPath",$params);
}catch (BadResponseException $e){
return $e->getMessage();
}
Expand Down

0 comments on commit b0bd355

Please sign in to comment.