作者 李宇航

合并分支 'lyh-server' 到 'master'

变更数据



查看合并请求 !3038
@@ -1603,11 +1603,6 @@ if (!function_exists('httpGetSsl')) { @@ -1603,11 +1603,6 @@ if (!function_exists('httpGetSsl')) {
1603 } 1603 }
1604 // 先取前 $limit 个字符 1604 // 先取前 $limit 个字符
1605 $truncated = mb_substr($text, 0, $limit, 'UTF-8'); 1605 $truncated = mb_substr($text, 0, $limit, 'UTF-8');
1606 - // 如果这一段包含空格(说明有英文单词),尽量在最后一个空格处截断  
1607 - if (strpos($truncated, '-') !== false) {  
1608 - $truncated = mb_strrpos($truncated, '-', 0, 'UTF-8');  
1609 - }  
1610 -  
1611 $lastSpace = mb_strrpos($truncated, ' ', 0, 'UTF-8'); 1606 $lastSpace = mb_strrpos($truncated, ' ', 0, 'UTF-8');
1612 if ($lastSpace !== false) { 1607 if ($lastSpace !== false) {
1613 // 在最后一个空格处截断,避免英文单词被截断 1608 // 在最后一个空格处截断,避免英文单词被截断