1
This commit is contained in:
commit
2edfc11290
@ -34,6 +34,10 @@ class OutAppMintController extends BaseController {
|
|||||||
myself()->_rspErr(1, 'hero not found');
|
myself()->_rspErr(1, 'hero not found');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if ($heroDb['quality'] <= 1) {
|
||||||
|
myself()->_rspErr(1, 'hero is N quality');
|
||||||
|
return;
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
if (!$heroDb['seal_type']) {
|
if (!$heroDb['seal_type']) {
|
||||||
myself()->_rspErr(1, 'hero no seal');
|
myself()->_rspErr(1, 'hero no seal');
|
||||||
|
@ -464,6 +464,9 @@ class OutAppNftController extends BaseController {
|
|||||||
'rows' => array()
|
'rows' => array()
|
||||||
);
|
);
|
||||||
foreach ($rows as $row) {
|
foreach ($rows as $row) {
|
||||||
|
if ($row['quality'] <= 1) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
$info = array(
|
$info = array(
|
||||||
'uniid' => '',
|
'uniid' => '',
|
||||||
'net_id' => 0,
|
'net_id' => 0,
|
||||||
|
@ -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