[更新]修改Receive方法,增加指定字段参数

This commit is contained in:
Anyon 2018-02-26 15:47:35 +08:00
parent 1fc95a1c47
commit 0bbdf10393

View File

@ -173,11 +173,12 @@ class BasicPushEvent
/** /**
* 获取公众号推送对象 * 获取公众号推送对象
* @param null|string $field 指定获取字段
* @return array * @return array
*/ */
public function getReceive() public function getReceive($field = null)
{ {
return $this->receive->get(); return $this->receive->get($field);
} }
/** /**