Closed Dagsi closed 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类似
https://github.com/w7corp/easywechat/compare/5.27.0...5.27.2
我用的环境
问题及现象
排查了一下,是因为EasyWeChat\Kernel\Http\Response的removeControlCharacters导致的数据为空,估计是因为表情符号导致的,在preg_replace语句修改为\preg_replace('/[\x00-\x1F\x80-\x9F]/u', '', mb_convert_encoding($content, 'UTF-8', 'UTF-8'))可以解决,问题和issues/1101类似