This commit is contained in:
aozhiwei 2021-12-07 14:19:21 +08:00
parent b388dc2ee1
commit 8412ffcf79

View File

@ -56,14 +56,13 @@ class User extends BaseModel {
public static function isValidHeadFrame($userInfo, $headFrame)
{
$headFrameList = !empty($userInfo['head_frame_list']) ?
json_decode($userInfo['head_frame_list'], true) : array();
$headFrameList = emptyRelace(json_decode($userInfo['head_frame_list'], true), array());
return in_array($headFrame, $headFrameList);
}
private static function getHeadList($userInfo)
{
$headList = !empty($userInfo['head_list']) ? json_decode($userInfo['head_list'], true) : array();
$headList = emptyRepalce(json_decode($userInfo['head_list'], true), array());
$heroList = array();
$heroSkinList = array();
return $headList;