1
This commit is contained in:
parent
4e7fa93de3
commit
594a42e19f
@ -39,6 +39,7 @@ CREATE TABLE `t_box_order` (
|
|||||||
`nonce` varchar(60) NOT NULL DEFAULT '' COMMENT 'nonce',
|
`nonce` varchar(60) NOT NULL DEFAULT '' COMMENT 'nonce',
|
||||||
`signature` varchar(255) NOT NULL DEFAULT '' COMMENT '签名',
|
`signature` varchar(255) NOT NULL DEFAULT '' COMMENT '签名',
|
||||||
`item_id` int(11) NOT NULL DEFAULT '0' COMMENT '道具id',
|
`item_id` int(11) NOT NULL DEFAULT '0' COMMENT '道具id',
|
||||||
|
`token_type` int(11) NOT NULL DEFAULT '0' COMMENT 'nft类型 0:英雄 1:枪支 2:芯片',
|
||||||
`bc_paid` int(11) NOT NULL DEFAULT '0' COMMENT '是否已支付',
|
`bc_paid` int(11) NOT NULL DEFAULT '0' COMMENT '是否已支付',
|
||||||
`bc_pay_count` int(11) NOT NULL DEFAULT '0' COMMENT '支付次数',
|
`bc_pay_count` int(11) NOT NULL DEFAULT '0' COMMENT '支付次数',
|
||||||
`bc_pay_time` int(11) NOT NULL DEFAULT '0' COMMENT '本节点最后一次支付时间',
|
`bc_pay_time` int(11) NOT NULL DEFAULT '0' COMMENT '本节点最后一次支付时间',
|
||||||
|
@ -296,7 +296,6 @@ class MarketController extends BaseController {
|
|||||||
'order_id' => $orderId,
|
'order_id' => $orderId,
|
||||||
'type' => $type,
|
'type' => $type,
|
||||||
'item_id' => $itemId,
|
'item_id' => $itemId,
|
||||||
'state' => 0,
|
|
||||||
'buyer_address' => $buyerAddress,
|
'buyer_address' => $buyerAddress,
|
||||||
'token_id' => $tokenId,
|
'token_id' => $tokenId,
|
||||||
'token_type' => $tokenType,
|
'token_type' => $tokenType,
|
||||||
@ -324,7 +323,7 @@ class MarketController extends BaseController {
|
|||||||
'state' => 2
|
'state' => 2
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
if ($orderDb['state'] == 1) {
|
if ($orderDb['is_paid'] == 1) {
|
||||||
myself()->_rspData(array(
|
myself()->_rspData(array(
|
||||||
'state' => 1
|
'state' => 1
|
||||||
));
|
));
|
||||||
|
@ -11,7 +11,7 @@ class BoxOrder extends BaseModel {
|
|||||||
{
|
{
|
||||||
$row = myself()->_getMarketMysql()->execQueryOne
|
$row = myself()->_getMarketMysql()->execQueryOne
|
||||||
('SELECT COUNT(*) AS sold_num FROM t_box_order WHERE batch_idx=:batch_idx AND ' .
|
('SELECT COUNT(*) AS sold_num FROM t_box_order WHERE batch_idx=:batch_idx AND ' .
|
||||||
' (state = 1 OR done <> 1);',
|
' (bc_paid = 1 OR done <> 1);',
|
||||||
array(
|
array(
|
||||||
':batch_idx' => $batchIdx
|
':batch_idx' => $batchIdx
|
||||||
));
|
));
|
||||||
@ -22,7 +22,7 @@ class BoxOrder extends BaseModel {
|
|||||||
{
|
{
|
||||||
$row = myself()->_getMarketMysql()->execQueryOne
|
$row = myself()->_getMarketMysql()->execQueryOne
|
||||||
('SELECT COUNT(*) AS buy_count FROM t_box_order WHERE batch_idx=:batch_idx AND ' .
|
('SELECT COUNT(*) AS buy_count FROM t_box_order WHERE batch_idx=:batch_idx AND ' .
|
||||||
' buyer_address=:buyer_address AND (state = 1 OR done <> 1);',
|
' buyer_address=:buyer_address AND (bc_paid = 1 OR done <> 1);',
|
||||||
array(
|
array(
|
||||||
':buyer_address' => $buyerAddress,
|
':buyer_address' => $buyerAddress,
|
||||||
':batch_idx' => $batchIdx
|
':batch_idx' => $batchIdx
|
||||||
|
Loading…
x
Reference in New Issue
Block a user