1
0
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:
koogua 2021-03-26 15:23:08 +08:00
parent 6c86f914cc
commit 0c964b85a6
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);
}