From 0cfd48880690c30ead9543a9381d7d4a54f4c033 Mon Sep 17 00:00:00 2001 From: Lemon <15040771@qq.com> Date: Fri, 9 Oct 2020 16:07:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Service/v3/Implementations/FeiePrintService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);