no message

This commit is contained in:
hellcat 2025-07-19 14:57:13 +08:00
parent 80ad02bd80
commit 01b4dee6cf

View File

@ -270,6 +270,11 @@ class Dog extends Mod\Base {
} }
private function subStr($input) { private function subStr($input) {
if (!$input) {
return $input;
}
if (mb_strlen($input, 'UTF-8') > (int) $this->iStrMaxLen) { if (mb_strlen($input, 'UTF-8') > (int) $this->iStrMaxLen) {
return mb_substr($input, 0, (int) $this->iStrMaxLen, 'UTF-8')."……"; return mb_substr($input, 0, (int) $this->iStrMaxLen, 'UTF-8')."……";