| 1 | <?php |
||
| 31 | class Notice extends BaseNotice |
||
| 32 | { |
||
| 33 | /** |
||
| 34 | * {@inheritdoc}. |
||
| 35 | */ |
||
| 36 | protected $message = [ |
||
| 37 | 'touser' => '', |
||
| 38 | 'template_id' => '', |
||
| 39 | 'page' => '', |
||
| 40 | 'form_id' => '', |
||
| 41 | 'data' => [], |
||
| 42 | 'emphasis_keyword' => '', |
||
| 43 | ]; |
||
| 44 | |||
| 45 | /** |
||
| 46 | * {@inheritdoc}. |
||
| 47 | */ |
||
| 48 | protected $defaults = [ |
||
| 49 | 'touser' => '', |
||
| 50 | 'template_id' => '', |
||
| 51 | 'form_id' => '', |
||
| 52 | 'data' => [], |
||
| 53 | ]; |
||
| 54 | |||
| 55 | /** |
||
| 56 | * {@inheritdoc}. |
||
| 57 | */ |
||
| 58 | protected $required = ['touser', 'template_id', 'form_id']; |
||
| 59 | |||
| 60 | public function __construct() |
||
| 66 | |||
| 67 | /** |
||
| 68 | * Send notice message. |
||
| 69 | */ |
||
| 70 | const API_SEND_NOTICE = 'https://api.weixin.qq.com/cgi-bin/message/wxopen/template/send'; |
||
| 71 | } |
||
| 72 |