1
This commit is contained in:
parent
294d5566bc
commit
3ee8252ec9
@ -38,7 +38,7 @@ class AANft(object):
|
|||||||
[':token_id', '', 'tokenId'],
|
[':token_id', '', 'tokenId'],
|
||||||
],
|
],
|
||||||
'response': [
|
'response': [
|
||||||
_common.NftHomeMeta(),
|
_common.NftHeroMeta(),
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -51,7 +51,7 @@ class AANft(object):
|
|||||||
[':token_id', '', 'tokenId'],
|
[':token_id', '', 'tokenId'],
|
||||||
],
|
],
|
||||||
'response': [
|
'response': [
|
||||||
_common.NftHomeMeta(),
|
_common.NftHeroMeta(),
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
@ -1680,3 +1680,31 @@ class NftHomeMeta(object):
|
|||||||
['image', '', 'nft图片地址'],
|
['image', '', 'nft图片地址'],
|
||||||
['external_link', '', 'nft链接'],
|
['external_link', '', 'nft链接'],
|
||||||
]
|
]
|
||||||
|
|
||||||
|
class NftAttribute(object):
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
self.fields = [
|
||||||
|
['trait_type', '', '属性名'],
|
||||||
|
['value', '', '属性值'],
|
||||||
|
]
|
||||||
|
|
||||||
|
class NftHeroMeta(object):
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
self.fields = [
|
||||||
|
['name', '', 'nft名字'],
|
||||||
|
['description', '', 'nft描述'],
|
||||||
|
['image', '', 'nft图片地址'],
|
||||||
|
['!attrigutes', [NftAttribute()], 'nft属性'],
|
||||||
|
]
|
||||||
|
|
||||||
|
class NftGoldBullionMeta(object):
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
self.fields = [
|
||||||
|
['name', '', 'nft名字'],
|
||||||
|
['description', '', 'nft描述'],
|
||||||
|
['image', '', 'nft图片地址'],
|
||||||
|
['!attrigutes', [NftAttribute()], 'nft属性'],
|
||||||
|
]
|
||||||
|
@ -2,9 +2,11 @@
|
|||||||
use phpcommon\SqlHelper;
|
use phpcommon\SqlHelper;
|
||||||
require_once('models/Nft.php');
|
require_once('models/Nft.php');
|
||||||
require_once('models/User.php');
|
require_once('models/User.php');
|
||||||
|
require_once('models/Hero.php');
|
||||||
|
|
||||||
use models\Nft;
|
use models\Nft;
|
||||||
use models\User;
|
use models\User;
|
||||||
|
use models\Hero;
|
||||||
class OutAppNftController extends BaseController {
|
class OutAppNftController extends BaseController {
|
||||||
|
|
||||||
public function getNftList(){
|
public function getNftList(){
|
||||||
@ -189,6 +191,7 @@ class OutAppNftController extends BaseController {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
error_log(json_encode($info));
|
||||||
myself()->_rspData($info);
|
myself()->_rspData($info);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user