w7corp / easywechat

📦 一个 PHP 微信 SDK
https://easywechat.com
MIT License
10.28k stars 2.4k forks source link

企业微信,获取客户群详情时,日志有记录返回数据,但是接口返回的数据为空 #2507

Closed Dagsi closed 2 years ago

Dagsi commented 2 years ago

我用的环境

问题及现象

排查了一下,是因为EasyWeChat\Kernel\Http\Response的removeControlCharacters导致的数据为空,估计是因为表情符号导致的,在preg_replace语句修改为\preg_replace('/[\x00-\x1F\x80-\x9F]/u', '', mb_convert_encoding($content, 'UTF-8', 'UTF-8'))可以解决,问题和issues/1101类似 image image

overtrue commented 2 years ago

https://github.com/w7corp/easywechat/compare/5.27.0...5.27.2