Ken hai 1 semana
pai
achega
bae0f64110
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  1. 7 1
      app/Services/BaseService.php

+ 7 - 1
app/Services/BaseService.php

@@ -201,7 +201,13 @@ class BaseService
         $bettingGroup = Config::where('field', 'betting_group')->first()->val;
 //        $separator = "\n";
         $array = explode($separator, $text);
-        foreach ($array as &$line) $line .= $separator;
+        foreach ($array as &$line) {
+            if ($line == "\n" || $line == "") {
+                unset($line);
+            } else {
+                $line .= $separator;
+            }
+        }
         $texts = [];
         $len = 4096;
         if (!empty($image)) $len = 1024;