2018-07-19 12:10:22 +08:00
|
|
|
<?php
|
|
|
|
|
/**
|
|
|
|
|
* Created by PhpStorm.
|
|
|
|
|
* User: whwyy
|
|
|
|
|
* Date: 2018/4/8 0008
|
|
|
|
|
* Time: 9:49
|
|
|
|
|
*/
|
|
|
|
|
|
2020-03-05 12:41:49 +08:00
|
|
|
namespace wchat\wx;
|
2018-07-19 12:10:22 +08:00
|
|
|
|
2020-04-30 22:25:50 +08:00
|
|
|
/**
|
|
|
|
|
* Class Template
|
|
|
|
|
* @package wchat\wx
|
|
|
|
|
*/
|
|
|
|
|
class Template extends \wchat\base\Template
|
2018-07-19 12:10:22 +08:00
|
|
|
{
|
2019-07-15 15:20:32 +08:00
|
|
|
|
2022-09-09 16:42:55 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return string
|
|
|
|
|
*/
|
|
|
|
|
public function getUrl(): string
|
|
|
|
|
{
|
|
|
|
|
return '/cgi-bin/message/wxopen/template/send';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return string
|
|
|
|
|
*/
|
|
|
|
|
public function getHost(): string
|
2019-07-12 19:25:47 +08:00
|
|
|
{
|
2022-09-09 16:42:55 +08:00
|
|
|
return 'api.weixin.qq.com';
|
2019-07-12 19:25:47 +08:00
|
|
|
}
|
|
|
|
|
|
2019-07-12 18:51:12 +08:00
|
|
|
}
|