2019-10-29 10:20:12 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
2020-03-05 12:41:49 +08:00
|
|
|
namespace wchat\wx;
|
2019-10-29 10:20:12 +08:00
|
|
|
|
|
|
|
|
|
2020-03-05 12:41:49 +08:00
|
|
|
use wchat\common\Result;
|
2019-11-11 18:14:47 +08:00
|
|
|
|
2020-11-14 03:04:25 +08:00
|
|
|
/**
|
|
|
|
|
* Class Subject
|
|
|
|
|
* @package wchat\wx
|
|
|
|
|
*/
|
2020-04-30 22:25:50 +08:00
|
|
|
class Subject extends \wchat\base\Subject
|
2019-10-29 10:20:12 +08:00
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2020-04-30 22:25:50 +08:00
|
|
|
* @return string
|
2019-10-29 10:20:12 +08:00
|
|
|
*/
|
2022-09-09 16:42:55 +08:00
|
|
|
public function getUrl(): string
|
2019-10-29 10:20:12 +08:00
|
|
|
{
|
2022-09-09 16:42:55 +08:00
|
|
|
return 'cgi-bin/message/subscribe/send';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return string
|
|
|
|
|
*/
|
|
|
|
|
public function getHost(): string
|
|
|
|
|
{
|
|
|
|
|
return 'api.weixin.qq.com';
|
2019-10-29 10:20:12 +08:00
|
|
|
}
|
|
|
|
|
}
|