Ken 1 周之前
父節點
當前提交
36942819db
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Services/BaseService.php

+ 1 - 1
app/Services/BaseService.php

@@ -195,7 +195,7 @@ class BaseService
         $array = explode("\n", $text);
         $texts = [];
         foreach ($array as $item) {
-            if (empty($texts) || strlen($texts[count($texts) - 1] . $item) <= 4096) {
+            if (count($texts) == 0 || strlen($texts[count($texts) - 1] . $item) <= 4096) {
                 $texts[count($texts) - 1] .= $item;
             } else {
                 $texts[] = $item;