1
This commit is contained in:
parent
b388dc2ee1
commit
8412ffcf79
@ -56,14 +56,13 @@ class User extends BaseModel {
|
|||||||
|
|
||||||
public static function isValidHeadFrame($userInfo, $headFrame)
|
public static function isValidHeadFrame($userInfo, $headFrame)
|
||||||
{
|
{
|
||||||
$headFrameList = !empty($userInfo['head_frame_list']) ?
|
$headFrameList = emptyRelace(json_decode($userInfo['head_frame_list'], true), array());
|
||||||
json_decode($userInfo['head_frame_list'], true) : array();
|
|
||||||
return in_array($headFrame, $headFrameList);
|
return in_array($headFrame, $headFrameList);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static function getHeadList($userInfo)
|
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();
|
$heroList = array();
|
||||||
$heroSkinList = array();
|
$heroSkinList = array();
|
||||||
return $headList;
|
return $headList;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user