Browse Source

打印

master
Lemon 5 years ago
parent
commit
0cfd488806
  1. 4
      app/Service/v3/Implementations/FeiePrintService.php

4
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);

Loading…
Cancel
Save