mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2025-04-05 09:52:47 +08:00
修改 echo 注释
This commit is contained in:
parent
ef32690703
commit
fdb9b63deb
@ -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)
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user