mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-08 11:02:48 +08:00
替换默认图片
This commit is contained in:
@@ -15,7 +15,7 @@ class Admin extends Model
|
||||
{
|
||||
|
||||
if(empty($value)){
|
||||
return '/static/images/avatar.jpeg';
|
||||
return '/static/images/avatar.png';
|
||||
}
|
||||
|
||||
return \get_source_link($value);
|
||||
|
||||
@@ -131,7 +131,7 @@ class Post extends Model
|
||||
public function getPosterAttr($value)
|
||||
{
|
||||
if(empty($value)){
|
||||
$value = '/static/images/avatar.jpeg';
|
||||
$value = '/static/images/avatar.png';
|
||||
}
|
||||
|
||||
return get_source_link($value);
|
||||
|
||||
@@ -19,7 +19,7 @@ class User extends Model
|
||||
public function getAvatarAttr($value)
|
||||
{
|
||||
if(empty($value)){
|
||||
return '/static/images/avatar.jpeg';
|
||||
return '/static/images/avatar.png';
|
||||
}
|
||||
|
||||
return \get_source_link($value);
|
||||
|
||||
Reference in New Issue
Block a user