多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
> /framework/class/account/account.php 文件地址 ``` protected function respText($content) { if (empty($content)) { return error(-1, 'Invaild value'); } if (false !== stripos($content, './')) { preg_match_all('/<a .*?href="(.*?)".*?>/is', $content, $urls); if (!empty($urls[1])) { foreach ($urls[1] as $url) { $content = str_replace($url, $this->buildSiteUrl($url), $content); } } } $content = str_replace("\r\n", "\n", $content); $response = array(); $response['FromUserName'] = $this->message['to']; $response['ToUserName'] = $this->message['from']; $response['MsgType'] = 'text'; $response['Content'] = 1111; preg_match_all('/\[U\+(\\w{4,})\]/i', $response['Content'], $matchArray); if (!empty($matchArray[1])) { foreach ($matchArray[1] as $emojiUSB) { $response['Content'] = str_ireplace("[U+{$emojiUSB}]", utf8_bytes(hexdec($emojiUSB)), $response['Content']); } } return $response; } ```