浏览代码

更新头像地址

sandm 3 年之前
父节点
当前提交
f2ca5fbd19
共有 1 个文件被更改,包括 2 次插入0 次删除
  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($k == 'avatar'){
                 if(file_exists(base_path() . '/public/' . $v)){
                 if(file_exists(base_path() . '/public/' . $v)){
                     $templateProcessor->setImageValue('avatar',['path' => base_path() . '/public/' . $v, 'width' => 200, 'height' => 150]);
                     $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{
             }else{