wesmiler 3 tháng trước cách đây
mục cha
commit
d1f7b3c31c
1 tập tin đã thay đổi với 7 bổ sung0 xóa
  1. 7 0
      app/Models/SupervisorsModel.php

+ 7 - 0
app/Models/SupervisorsModel.php

@@ -10,6 +10,13 @@ class SupervisorsModel extends BaseModel
     // 设置数据表
     protected $table = 'supervisors';
 
+    // 头像
+    public function getAvatarAttribute($value)
+    {
+        $value = $value ? get_image_url($value) : '';
+        return $value;
+    }
+
     /**
      * 关联用户
      */