1
This commit is contained in:
parent
cdbbd13ef6
commit
75cd1341bf
@ -517,7 +517,7 @@ class NftDetail(object):
|
|||||||
['owner_address', '', '所有者地址'],
|
['owner_address', '', '所有者地址'],
|
||||||
['owner_name', '', '所有名字'],
|
['owner_name', '', '所有名字'],
|
||||||
['item_id', 0, '道具id'],
|
['item_id', 0, '道具id'],
|
||||||
['type', '', 'nft类型 1:英雄 2:枪支 3:芯片'],
|
['type', '', 'nft类型 1:英雄 2:枪支 3:芯片 4:盲盒'],
|
||||||
['image', '', 'nft图片地址'],
|
['image', '', 'nft图片地址'],
|
||||||
['state', 0, '0:正常状态 1:出售中 2:出租中'],
|
['state', 0, '0:正常状态 1:出售中 2:出租中'],
|
||||||
['info', Union([
|
['info', Union([
|
||||||
|
@ -119,14 +119,12 @@ DROP TABLE IF EXISTS `t_nft`;
|
|||||||
/*!40101 SET character_set_client = utf8 */;
|
/*!40101 SET character_set_client = utf8 */;
|
||||||
CREATE TABLE `t_nft` (
|
CREATE TABLE `t_nft` (
|
||||||
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
|
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
|
||||||
|
`owner_address` varchar(60) NOT NULL DEFAULT '' COMMENT 'owner_address',
|
||||||
`token_id` varchar(60) NOT NULL DEFAULT '' COMMENT 'token_id',
|
`token_id` varchar(60) NOT NULL DEFAULT '' COMMENT 'token_id',
|
||||||
`token_type` int(11) NOT NULL DEFAULT '0' COMMENT 'nft类型 1:英雄 2:枪支 3:芯片',
|
`token_type` int(11) NOT NULL DEFAULT '0' COMMENT 'nft类型 1:英雄 2:枪支 3:芯片',
|
||||||
`game_id` int(11) NOT NULL DEFAULT '0' COMMENT 'game id',
|
|
||||||
`token_state` int(11) NOT NULL DEFAULT '0' COMMENT '0:正常状态 1:出售中 2:出租中',
|
`token_state` int(11) NOT NULL DEFAULT '0' COMMENT '0:正常状态 1:出售中 2:出租中',
|
||||||
`token_state` NOT NULL DEFAULT '' COMMENT '0:正常状态 1:出售中 2:出租中',
|
|
||||||
`game_id` int(11) NOT NULL DEFAULT '0' COMMENT 'game id',
|
`game_id` int(11) NOT NULL DEFAULT '0' COMMENT 'game id',
|
||||||
`item_id` int(11) NOT NULL DEFAULT '0' COMMENT '道具id',
|
`item_id` int(11) NOT NULL DEFAULT '0' COMMENT '道具id',
|
||||||
`owner_address` varchar(255) NOT NULL DEFAULT '' COMMENT 'owner_address',
|
|
||||||
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
||||||
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
||||||
PRIMARY KEY (`idx`),
|
PRIMARY KEY (`idx`),
|
||||||
|
@ -200,9 +200,9 @@ class BcShopController extends BaseController {
|
|||||||
$fieldsKv['bc_mint_token_type' . $i] = $items[$i - 1]['token_type'];
|
$fieldsKv['bc_mint_token_type' . $i] = $items[$i - 1]['token_type'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (MarketService::isTestMode()) {
|
/*if (MarketService::isTestMode()) {
|
||||||
$fieldsKv['bc_paid'] = 1;
|
$fieldsKv['bc_paid'] = 1;
|
||||||
}
|
}*/
|
||||||
$fieldsKv['order_id'] = $orderId;
|
$fieldsKv['order_id'] = $orderId;
|
||||||
SqlHelper::insert(
|
SqlHelper::insert(
|
||||||
myself()->_getMarketMysql(),
|
myself()->_getMarketMysql(),
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once('mt/MarketGoods.php');
|
require_once('mt/MarketGoods.php');
|
||||||
require_once('mt/MarketBatch.php');
|
require_once('mt/MarketBatch.php');
|
||||||
@ -217,9 +217,9 @@ class MarketController extends BaseController {
|
|||||||
$fieldsKv['bc_mint_token_type' . $i] = $items[$i - 1]['token_type'];
|
$fieldsKv['bc_mint_token_type' . $i] = $items[$i - 1]['token_type'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (MarketService::isTestMode()) {
|
/*if (MarketService::isTestMode()) {
|
||||||
$fieldsKv['bc_paid'] = 1;
|
$fieldsKv['bc_paid'] = 1;
|
||||||
}
|
}*/
|
||||||
$fieldsKv['order_id'] = $orderId;
|
$fieldsKv['order_id'] = $orderId;
|
||||||
SqlHelper::insert(
|
SqlHelper::insert(
|
||||||
myself()->_getMarketMysql(),
|
myself()->_getMarketMysql(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user