Default Changelist

This commit is contained in:
xl
2023-11-07 15:13:11 +08:00
parent dbdae7c6c5
commit 43f504b2ad
23 changed files with 832 additions and 624 deletions
+8 -1
View File
@@ -27,7 +27,14 @@ class Account extends SmallProgram
$client = new Client('api.q.qq.com', 443, true);
$client->withHeader(['Content-Type' => 'application/json']);
$client->get('sns/jscode2session', $param);
$proxyHost = $this->getConfig()->getProxyHost();
$proxyPort = $this->getConfig()->getProxyPort();
if (!empty($proxyHost) && $proxyPort > 0) {
$client->withProxyHost($proxyHost)->withProxyPort($proxyPort);
}
$client->get('sns/jscode2session', $param);
$client->close();
return Result::init($client);