sandm 3 жил өмнө
parent
commit
f2ca5fbd19

+ 2 - 0
app/Jobs/TicketJob.php

@@ -311,6 +311,8 @@ class TicketJob implements ShouldQueue
             if($k == 'avatar'){
                 if(file_exists(base_path() . '/public/' . $v)){
                     $templateProcessor->setImageValue('avatar',['path' => base_path() . '/public/' . $v, 'width' => 200, 'height' => 150]);
+                }else{
+                    $templateProcessor->setImageValue('avatar',['path' => 'https://www.jucai.gov.cn/' . $v, 'width' => 200, 'height' => 150]);
                 }
 
             }else{