1
This commit is contained in:
parent
cd885b85d6
commit
256b236b91
@ -2,6 +2,11 @@
|
||||
|
||||
namespace models;
|
||||
|
||||
require_once('mt/Item.php');
|
||||
|
||||
use mt;
|
||||
use phpcommon\SqlHelper;
|
||||
|
||||
class User extends BaseModel {
|
||||
|
||||
public static function show($row)
|
||||
@ -65,8 +70,19 @@ class User extends BaseModel {
|
||||
private static function getHeadList($userInfo)
|
||||
{
|
||||
$headList = emptyReplace(json_decode($userInfo['head_list'], true), array());
|
||||
$heroList = array();
|
||||
$heroSkinList = array();
|
||||
$rows = SqlHelper::ormSelect(
|
||||
myself()->_getSelfMysql(),
|
||||
't_hero',
|
||||
array(
|
||||
'account_id' => $userInfo['account_id'],
|
||||
)
|
||||
);
|
||||
foreach ($rows as $row) {
|
||||
$itemMeta = mt\Item::get($row['hero_id']);
|
||||
if ($itemMeta && $itemMeta['hero_head']) {
|
||||
array_push($headList, $itemMeta['hero_head']);
|
||||
}
|
||||
}
|
||||
return $headList;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user