Explorar o código

更新头像地址

sandm %!s(int64=4) %!d(string=hai) anos
pai
achega
f2ca5fbd19
Modificáronse 1 ficheiros con 2 adicións e 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{