fix:修复BUG/升级1.1.6版本

This commit is contained in:
Ying
2023-04-25 20:11:49 +08:00
parent 445e5f9662
commit 6a6866bbaf
2357 changed files with 456920 additions and 140567 deletions

View File

@@ -1,5 +1,5 @@
<?php
declare (strict_types = 1);
namespace app\common\model\system;

View File

@@ -1,5 +1,5 @@
<?php
declare (strict_types = 1);
namespace app\common\model\system;

View File

@@ -1,5 +1,5 @@
<?php
declare (strict_types = 1);
namespace app\common\model\system;

View File

@@ -1,5 +1,5 @@
<?php
declare (strict_types = 1);
namespace app\common\model\system;

View File

@@ -1,5 +1,5 @@
<?php
declare (strict_types = 1);
namespace app\common\model\system;

View File

@@ -1,5 +1,5 @@
<?php
declare (strict_types = 1);
namespace app\common\model\system;
use Psr\SimpleCache\InvalidArgumentException;
@@ -80,20 +80,18 @@ class User extends Model
*/
public function getAvatarAttr(string $value, array $data): string
{
if ($value && strpos($value,'://')) {
return $value;
}
if (empty($value)) {
$value = '/static/images/user_default.jpg';
}
$prefix = cdn_Prefix();
if (!empty($prefix) && $value) {
if (!str_contains($value,'data:image')) {
if (!str_contains($value,'data:image')
&& !str_contains($value,'http')) {
return $prefix.$value;
}
} else if (empty($value)) {
$value = '/static/images/user_default.jpg';
}
return $value;

View File

@@ -1,5 +1,5 @@
<?php
declare (strict_types = 1);
namespace app\common\model\system;

View File

@@ -40,5 +40,4 @@ class UserNotice extends Model
// 钩子消息推送
Event::emit('sendUserNotice', $data);
}
}

View File

@@ -1,5 +1,5 @@
<?php
declare (strict_types = 1);
namespace app\common\model\system;

View File

@@ -1,5 +1,5 @@
<?php
declare (strict_types = 1);
namespace app\common\model\system;