Ver código fonte

保存图生文

王大坤 1 ano atrás
pai
commit
0e1924e07c

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

xqd
@@ -191,7 +191,6 @@ class AiController extends Controller
             $task->init_content = $complete['result'];
             $task->image_to_text = $imageToText;
             $task->save();
-
             return Response::success($complete);
         } catch (\Exception $exception) {
             LogHelper::exceptionLog($exception, $this->code);

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

xqd
@@ -43,9 +43,9 @@
 <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;margin-top:40px" src="{{$img}}"/>
+        <img style="width: 100%;float: left;margin-right: 10px;margin-bottom: 40px;max-height:1024px;margin-top:40px" src="{{$img}}"/>
         <div >{!! $data !!}</div>
     </div>
 </div>
 </body>
-</html>
+</html>