Ken 1 周之前
父节点
当前提交
27fcdb2184
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      app/Services/BaseService.php

+ 1 - 2
app/Services/BaseService.php

@@ -212,8 +212,7 @@ class BaseService
             }
         }
         $texts = [];
-        $len = 4096;
-        if (!empty($image)) $len = 1024;
+        $len = !empty($image) ? 1024 : 4096;
         foreach ($array as $item) {
             if (count($texts) > 1) $len = 4096;
             if (count($texts) == 0 || strlen($texts[count($texts) - 1] . $item) > $len) {