This commit is contained in:
aozhiwei 2024-07-19 14:24:55 +08:00
parent c49f7ed3b1
commit 77c7c12213

View File

@ -18,6 +18,7 @@ class NftService extends BaseService {
private static $userData = array();
private static $nftCfg = array(
'hero' => Nft::HERO_TYPE,
'normal_hero' => Nft::GCARD_HERO_TYPE,
'equip' => Nft::EQUIP_TYPE,
'chip' => Nft::CHIP_TYPE,
'ring' => Nft::RING_TYPE,
@ -36,7 +37,8 @@ class NftService extends BaseService {
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)
@ -51,7 +53,9 @@ class NftService extends BaseService {
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)