diff --git a/app/Service/v3/Implementations/FeiePrintService.php b/app/Service/v3/Implementations/FeiePrintService.php index da6faa6..a8aa0fd 100644 --- a/app/Service/v3/Implementations/FeiePrintService.php +++ b/app/Service/v3/Implementations/FeiePrintService.php @@ -195,8 +195,8 @@ class FeiePrintService implements FeiePrintServiceInterface } $total = '合计:'.$arr->money; $userName = $arr->name; - if(mb_strlen($userName)>18){ - $userName=mb_substr($userName,0,18).'...'; + if(mb_strlen($userName)>8){ + $userName=mb_substr($userName,0,7).'...'; } $userLength = preg_replace('/[^\x{4e00}-\x{9fa5}]/u', '', $userName); $totalLength = preg_replace('/[^\x{4e00}-\x{9fa5}]/u', '', $total);