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
+5
View File
@@ -148,6 +148,11 @@ class PublicTemplate extends SmallProgram
$client = new Client('api.weixin.qq.com', 443, true);
$client->withHeader(['Content-Type' => 'application/json']);
$proxyHost = $this->getConfig()->getProxyHost();
$proxyPort = $this->getConfig()->getProxyPort();
if (!empty($proxyHost) && $proxyPort > 0) {
$client->withProxyHost($proxyHost)->withProxyPort($proxyPort);
}
$client->post($url, $default);
$client->close();