Ver Fonte

更新pdf样式

王大坤 há 1 ano atrás
pai
commit
ffe847f9d7
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      app/Http/Controllers/V1/Ai/AiController.php

+ 1 - 1
app/Http/Controllers/V1/Ai/AiController.php

xqd
@@ -483,7 +483,7 @@ class AiController extends Controller
             if (!is_dir($imageDir)) {
                 mkdir($imageDir, 0755, true);
             }
-            $shell = 'wkhtmltopdf https://hb.swdz.com/api/ai/Pinyin?type=1&id=' . $task->id . ' ' . $path;
+            $shell = "wkhtmltopdf 'https://hb.swdz.com/api/ai/Pinyin?type=1&id=" . $task->id . "' ". "'".$path."'";
             exec($shell, $result, $status);
             if ($status) {
                 $this->exit_out('生成PDF失败', ['生成PDF失败' => [$shell, $result, $status]]);