add clear

This commit is contained in:
2022-09-09 16:42:55 +08:00
parent ad76b45b45
commit 7273fe1ce5
63 changed files with 2625 additions and 5287 deletions
+15 -3
View File
@@ -14,11 +14,23 @@ namespace wchat\wx;
*/
class Template extends \wchat\base\Template
{
private $sendUrl = 'https://api.weixin.qq.com/cgi-bin/message/wxopen/template/send';
public function getUrl()
/**
* @return string
*/
public function getUrl(): string
{
return $this->sendUrl;
return '/cgi-bin/message/wxopen/template/send';
}
/**
* @return string
*/
public function getHost(): string
{
return 'api.weixin.qq.com';
}
}