This commit is contained in:
aozhiwei 2024-07-19 14:27:04 +08:00
commit 2edfc11290
3 changed files with 13 additions and 2 deletions

View File

@ -34,6 +34,10 @@ class OutAppMintController extends BaseController {
myself()->_rspErr(1, 'hero not found');
return;
}
if ($heroDb['quality'] <= 1) {
myself()->_rspErr(1, 'hero is N quality');
return;
}
/*
if (!$heroDb['seal_type']) {
myself()->_rspErr(1, 'hero no seal');

View File

@ -464,6 +464,9 @@ class OutAppNftController extends BaseController {
'rows' => array()
);
foreach ($rows as $row) {
if ($row['quality'] <= 1) {
continue;
}
$info = array(
'uniid' => '',
'net_id' => 0,

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)