Skip to content

Commit

Permalink
Merge pull request #2 from fangmuke/main
Browse files Browse the repository at this point in the history
fix: 修复token获取以及刷新
  • Loading branch information
zmoyi authored Apr 24, 2024
2 parents 596ee24 + f8aecf0 commit b863320
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function getInitToken($code): Exception|string|GuzzleException
'code' => $code,
];
$data['sign'] = Util::getSign($this->getConfig()['appSecret'],$data);
return $this->request($this->getConfig()['apiUrl']. 'openWeb/auth/getInitToken', $data);
return $this->post($this->getConfig()['apiUrl']. 'openWeb/auth/getInitToken', $data);
}

/**
Expand All @@ -97,7 +97,7 @@ public function getAccessToken($code): Exception|string|GuzzleException
'code' => $code,
];
$data['sign'] = Util::getSign($this->getConfig()['appSecret'],$data);
return $this->request($this->getConfig()['apiUrl']. 'openWeb/auth/accessToken', $data);
return $this->post($this->getConfig()['apiUrl']. 'openWeb/auth/accessToken', $data);
}

/**
Expand All @@ -117,7 +117,7 @@ public function refreshToken($refreshToken): Exception|string|GuzzleException
];

$data['sign'] = Util::getSign($this->getConfig()['appSecret'],$data);
return $this->request($this->getConfig()['apiUrl']. 'openWeb/auth/refreshToken', $data);
return $this->post($this->getConfig()['apiUrl']. 'openWeb/auth/refreshToken', $data);
}


Expand Down

0 comments on commit b863320

Please sign in to comment.