This commit is contained in:
aozhiwei 2024-06-04 11:50:53 +08:00
parent 748f6ad15f
commit ae84812eeb
3 changed files with 7 additions and 4 deletions

View File

@ -74,7 +74,7 @@ class BlockChain(object):
] ]
}, },
{ {
'name': 'buyDiamond', 'name': 'buyDiamond(废弃)',
'desc': '购买钻石', 'desc': '购买钻石',
'group': 'BlockChain', 'group': 'BlockChain',
'url': 'webapp/index.php?c=BlockChain&a=buyDiamond', 'url': 'webapp/index.php?c=BlockChain&a=buyDiamond',
@ -90,7 +90,7 @@ class BlockChain(object):
] ]
}, },
{ {
'name': 'buyMallProduct', 'name': 'buyMallProduct(废弃)',
'desc': '购买中心化market商品', 'desc': '购买中心化market商品',
'group': 'BlockChain', 'group': 'BlockChain',
'url': 'webapp/index.php?c=BlockChain&a=buyMallProduct', 'url': 'webapp/index.php?c=BlockChain&a=buyMallProduct',

View File

@ -281,8 +281,9 @@ class BlockChainController extends BaseAuthedController {
} }
} }
public function buyDiamond() public function _buyDiamond()
{ {
return;
error_log(json_encode($_REQUEST)); error_log(json_encode($_REQUEST));
$num = getReqVal('num', 0); $num = getReqVal('num', 0);
$tokenType = getReqVal('token_type', ''); $tokenType = getReqVal('token_type', '');
@ -363,8 +364,9 @@ class BlockChainController extends BaseAuthedController {
); );
} }
public function buyMallProduct() public function _buyMallProduct()
{ {
return;
$address = myself()->_getAddress(); $address = myself()->_getAddress();
if (empty($address)) { if (empty($address)) {
myself()-_rspErr(1, 'address not found'); myself()-_rspErr(1, 'address not found');

View File

@ -27,6 +27,7 @@ class Nft extends BaseModel
const PLANET_TYPE = 8; //星球 const PLANET_TYPE = 8; //星球
const EXPLORER_TYPE = 9; //Explorer const EXPLORER_TYPE = 9; //Explorer
const CANDY_TYPE = 10; //CANDY const CANDY_TYPE = 10; //CANDY
const GOLD_BULLION_TYPE = 11; //金砖
const RING_TYPE = 19; //戒指 const RING_TYPE = 19; //戒指
const AVATAR_TYPE = 30; //装饰 const AVATAR_TYPE = 30; //装饰