1
This commit is contained in:
parent
637ead94e3
commit
5e101e9d9e
@ -1388,6 +1388,7 @@ CREATE TABLE `t_mall` (
|
|||||||
`order_id` varchar(255) NOT NULL DEFAULT '' COMMENT '订单id',
|
`order_id` varchar(255) NOT NULL DEFAULT '' COMMENT '订单id',
|
||||||
`goods_uuid` varchar(255) NOT NULL DEFAULT '' COMMENT '商品uuid',
|
`goods_uuid` varchar(255) NOT NULL DEFAULT '' COMMENT '商品uuid',
|
||||||
`seller` varchar(60) NOT NULL DEFAULT '' COMMENT 'seller',
|
`seller` varchar(60) NOT NULL DEFAULT '' COMMENT 'seller',
|
||||||
|
`seller_address` varchar(60) NOT NULL DEFAULT '' COMMENT 'seller_address',
|
||||||
`item_id` int(11) NOT NULL DEFAULT '0' COMMENT '物品id',
|
`item_id` int(11) NOT NULL DEFAULT '0' COMMENT '物品id',
|
||||||
`item_num` bigint NOT NULL DEFAULT '0' COMMENT '物品数量',
|
`item_num` bigint NOT NULL DEFAULT '0' COMMENT '物品数量',
|
||||||
`currency` varchar(60) NOT NULL COMMENT 'currency',
|
`currency` varchar(60) NOT NULL COMMENT 'currency',
|
||||||
@ -1397,6 +1398,7 @@ CREATE TABLE `t_mall` (
|
|||||||
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
||||||
PRIMARY KEY (`idx`),
|
PRIMARY KEY (`idx`),
|
||||||
KEY `seller` (`seller`),
|
KEY `seller` (`seller`),
|
||||||
|
KEY `seller_address` (`seller_address`),
|
||||||
UNIQUE KEY `order_id` (`order_id`),
|
UNIQUE KEY `order_id` (`order_id`),
|
||||||
UNIQUE KEY `goods_uuid` (`goods_uuid`)
|
UNIQUE KEY `goods_uuid` (`goods_uuid`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||||
|
@ -399,7 +399,7 @@ class BlockChainController extends BaseAuthedController {
|
|||||||
|
|
||||||
$rspObj = services\BlockChainService::gameItemMarketBuy(
|
$rspObj = services\BlockChainService::gameItemMarketBuy(
|
||||||
Transaction::BUY_GOODS_FROM_MARKET_ACTION_TYPE,
|
Transaction::BUY_GOODS_FROM_MARKET_ACTION_TYPE,
|
||||||
$goods['seller'],
|
$goods['seller_address'],
|
||||||
$goods['price'],
|
$goods['price'],
|
||||||
$goods['item_id'],
|
$goods['item_id'],
|
||||||
$goods['item_num']
|
$goods['item_num']
|
||||||
@ -417,7 +417,7 @@ class BlockChainController extends BaseAuthedController {
|
|||||||
'item_id' => $item_id,
|
'item_id' => $item_id,
|
||||||
'item_num' => $item_count,
|
'item_num' => $item_count,
|
||||||
'order_type' => BcOrder::SPEC_ORDER_TYPE,
|
'order_type' => BcOrder::SPEC_ORDER_TYPE,
|
||||||
'price' => $this->Web3PriceLowFormat($goods['s_price']),
|
'price' => $this->Web3PriceLowFormat($goods['price']),
|
||||||
'ext_data' => json_encode(array(
|
'ext_data' => json_encode(array(
|
||||||
'mode' => BcOrder::MARKET_BUY_MODE_NORMAL,
|
'mode' => BcOrder::MARKET_BUY_MODE_NORMAL,
|
||||||
'idx' => $idx,
|
'idx' => $idx,
|
||||||
|
@ -50,6 +50,7 @@ class MallController extends BaseAuthedController {
|
|||||||
array(
|
array(
|
||||||
'goods_uuid' => $row['goods_uuid'],
|
'goods_uuid' => $row['goods_uuid'],
|
||||||
'seller' => $row['seller'],
|
'seller' => $row['seller'],
|
||||||
|
'seller_address' => $row['seller_address'],
|
||||||
'item_id' => $row['item_id'],
|
'item_id' => $row['item_id'],
|
||||||
'item_num' => $row['item_num'],
|
'item_num' => $row['item_num'],
|
||||||
'currency' => $row['currency'],
|
'currency' => $row['currency'],
|
||||||
|
@ -41,6 +41,7 @@ class Mall extends BaseModel {
|
|||||||
'order_id' => $orderId,
|
'order_id' => $orderId,
|
||||||
'goods_uuid' => $goodsUuid,
|
'goods_uuid' => $goodsUuid,
|
||||||
'seller' => myself()->_getAccountId(),
|
'seller' => myself()->_getAccountId(),
|
||||||
|
'seller_address' => myself()->_getAddresss(),
|
||||||
'item_id' => $itemId,
|
'item_id' => $itemId,
|
||||||
'item_num' => $itemNum,
|
'item_num' => $itemNum,
|
||||||
'currency' => $currency,
|
'currency' => $currency,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user