修改 echo 注释

This commit is contained in:
邹景立 2023-11-06 22:45:40 +08:00
parent ef32690703
commit fdb9b63deb
2 changed files with 3 additions and 5 deletions

View File

@ -144,7 +144,7 @@ class BasicPushEvent
* @param array $data 消息内容 * @param array $data 消息内容
* @param boolean $return 是否返回XML内容 * @param boolean $return 是否返回XML内容
* @param boolean $isEncrypt 是否加密内容 * @param boolean $isEncrypt 是否加密内容
* @return string * @return string|void
* @throws \WeChat\Exceptions\InvalidDecryptException * @throws \WeChat\Exceptions\InvalidDecryptException
*/ */
public function reply(array $data = [], $return = false, $isEncrypt = false) public function reply(array $data = [], $return = false, $isEncrypt = false)

View File

@ -153,14 +153,12 @@ class BasicWePay
* 数组直接转xml数据输出 * 数组直接转xml数据输出
* @param array $data * @param array $data
* @param bool $isReturn * @param bool $isReturn
* @return string * @return string|void
*/ */
public function toXml(array $data, $isReturn = false) public function toXml(array $data, $isReturn = false)
{ {
$xml = Tools::arr2xml($data); $xml = Tools::arr2xml($data);
if ($isReturn) { if ($isReturn) return $xml;
return $xml;
}
echo $xml; echo $xml;
} }