Explorar el Código

更新头像地址

sandm hace 3 años
padre
commit
f2ca5fbd19
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      app/Jobs/TicketJob.php

+ 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{