This commit is contained in:
aozhiwei 2023-08-07 15:48:37 +08:00
parent 637ead94e3
commit 5e101e9d9e
4 changed files with 6 additions and 2 deletions

View File

@ -1388,6 +1388,7 @@ CREATE TABLE `t_mall` (
`order_id` varchar(255) NOT NULL DEFAULT '' COMMENT '订单id',
`goods_uuid` varchar(255) NOT NULL DEFAULT '' COMMENT '商品uuid',
`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_num` bigint NOT NULL DEFAULT '0' COMMENT '物品数量',
`currency` varchar(60) NOT NULL COMMENT 'currency',
@ -1397,6 +1398,7 @@ CREATE TABLE `t_mall` (
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
PRIMARY KEY (`idx`),
KEY `seller` (`seller`),
KEY `seller_address` (`seller_address`),
UNIQUE KEY `order_id` (`order_id`),
UNIQUE KEY `goods_uuid` (`goods_uuid`)
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

View File

@ -399,7 +399,7 @@ class BlockChainController extends BaseAuthedController {
$rspObj = services\BlockChainService::gameItemMarketBuy(
Transaction::BUY_GOODS_FROM_MARKET_ACTION_TYPE,
$goods['seller'],
$goods['seller_address'],
$goods['price'],
$goods['item_id'],
$goods['item_num']
@ -417,7 +417,7 @@ class BlockChainController extends BaseAuthedController {
'item_id' => $item_id,
'item_num' => $item_count,
'order_type' => BcOrder::SPEC_ORDER_TYPE,
'price' => $this->Web3PriceLowFormat($goods['s_price']),
'price' => $this->Web3PriceLowFormat($goods['price']),
'ext_data' => json_encode(array(
'mode' => BcOrder::MARKET_BUY_MODE_NORMAL,
'idx' => $idx,

View File

@ -50,6 +50,7 @@ class MallController extends BaseAuthedController {
array(
'goods_uuid' => $row['goods_uuid'],
'seller' => $row['seller'],
'seller_address' => $row['seller_address'],
'item_id' => $row['item_id'],
'item_num' => $row['item_num'],
'currency' => $row['currency'],

View File

@ -41,6 +41,7 @@ class Mall extends BaseModel {
'order_id' => $orderId,
'goods_uuid' => $goodsUuid,
'seller' => myself()->_getAccountId(),
'seller_address' => myself()->_getAddresss(),
'item_id' => $itemId,
'item_num' => $itemNum,
'currency' => $currency,