1
This commit is contained in:
parent
c49f7ed3b1
commit
77c7c12213
@ -18,6 +18,7 @@ class NftService extends BaseService {
|
|||||||
private static $userData = array();
|
private static $userData = array();
|
||||||
private static $nftCfg = array(
|
private static $nftCfg = array(
|
||||||
'hero' => Nft::HERO_TYPE,
|
'hero' => Nft::HERO_TYPE,
|
||||||
|
'normal_hero' => Nft::GCARD_HERO_TYPE,
|
||||||
'equip' => Nft::EQUIP_TYPE,
|
'equip' => Nft::EQUIP_TYPE,
|
||||||
'chip' => Nft::CHIP_TYPE,
|
'chip' => Nft::CHIP_TYPE,
|
||||||
'ring' => Nft::RING_TYPE,
|
'ring' => Nft::RING_TYPE,
|
||||||
@ -36,7 +37,8 @@ class NftService extends BaseService {
|
|||||||
|
|
||||||
public static function isHeroOwner($openId, $tokenId)
|
public static function isHeroOwner($openId, $tokenId)
|
||||||
{
|
{
|
||||||
return self::internalIsOwner($openId, 'hero', $tokenId);
|
return self::internalIsOwner($openId, 'hero', $tokenId) ||
|
||||||
|
self::internalIsOwner($openId, 'normal_hero', $tokenId);;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function isEquipOwner($openId, $tokenId)
|
public static function isEquipOwner($openId, $tokenId)
|
||||||
@ -51,7 +53,9 @@ class NftService extends BaseService {
|
|||||||
|
|
||||||
public static function getHeros($openId)
|
public static function getHeros($openId)
|
||||||
{
|
{
|
||||||
return self::internalGetList($openId, 'hero');
|
$heros = self::internalGetList($openId, 'hero');
|
||||||
|
$normalHeros = self::internalGetList($openId, 'normal_hero');
|
||||||
|
return array_merge($heros, $normalHeros);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getEquips($openId)
|
public static function getEquips($openId)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user