mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-24 20:06:09 +08:00
修正im头像路径
This commit is contained in:
parent
6c86f914cc
commit
0c964b85a6
@ -128,7 +128,7 @@ class ImGroup extends Model
|
||||
public function beforeCreate()
|
||||
{
|
||||
if (empty($this->avatar)) {
|
||||
$this->avatar = kg_default_user_avatar_path();
|
||||
$this->avatar = kg_default_group_avatar_path();
|
||||
} elseif (Text::startsWith($this->avatar, 'http')) {
|
||||
$this->avatar = self::getAvatarPath($this->avatar);
|
||||
}
|
||||
|
@ -113,7 +113,7 @@ class ImUser extends Model
|
||||
public function beforeCreate()
|
||||
{
|
||||
if (empty($this->avatar)) {
|
||||
$this->avatar = kg_default_group_avatar_path();
|
||||
$this->avatar = kg_default_user_avatar_path();
|
||||
} elseif (Text::startsWith($this->avatar, 'http')) {
|
||||
$this->avatar = self::getAvatarPath($this->avatar);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user