Selaa lähdekoodia

更新pdf样式

王大坤 1 vuosi sitten
vanhempi
commit
0af473c143
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 1 1
      app/Http/Controllers/V1/Ai/AiController.php
  2. 1 1
      resources/views/pdf.blade.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?id=' . $task->id . '&type=1 ' . $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]]);

+ 1 - 1
resources/views/pdf.blade.php

xqd
@@ -43,7 +43,7 @@
 <div class="pinyin">
     <div id="tool-result"  style="display: block;">
         <h1>{{$title}}</h1>
-        <img style="width: 100%;float: left;margin-right: 10px;margin-bottom: 40px;{{$type ? 'max-height:1024px' : ''}};margin-top:40px" src="{{$img}}"/>
+        <img style="width: 100%;float: left;margin-right: 10px;margin-bottom: 40px;{{$type ? 'max-height:1024px;' : ''}}margin-top:40px" src="{{$img}}"/>
         <div >{!! $data !!}</div>
     </div>
 </div>