diff --git a/sql/gamedb.sql b/sql/gamedb.sql index befbb924..42bf8148 100644 --- a/sql/gamedb.sql +++ b/sql/gamedb.sql @@ -1155,7 +1155,7 @@ CREATE TABLE `t_shop_buy_order` ( `createtime` int(11) NOT NULL COMMENT '订单开始时间', `id` int(11) NOT NULL COMMENT '商店货物id', `item_id` int(11) NOT NULL COMMENT '道具id', - `goods_num` int(11) NOT NULL COMMENT '购买个数', + `goods_num` bigint(20) NOT NULL COMMENT '购买个数', `status` int(11) NOT NULL COMMENT '订单状态 0-客户端申请了订单 1-订单完成 2-订单失败', PRIMARY KEY (`idx`), UNIQUE KEY `order_id` (`order_id`) @@ -1312,8 +1312,8 @@ CREATE TABLE `t_market_store` ( `amount` bigint(20) NOT NULL DEFAULT '1' COMMENT '堆叠数量', `createtime` int(11) NOT NULL COMMENT '创建时间(上架时间)', `modifytime` int(11) NOT NULL COMMENT '修改时间(更新价格等)', - `buytime` int(11) NOT NULL COMMENT '开始购买的时间', - `s_currency` varchar(64) NOT NULL COMMENT '出售时选择的币种地址', + `buytime` int(11) DEFAULT NULL COMMENT '开始购买的时间', + `s_currency` varchar(64) DEFAULT NULL COMMENT '出售时选择的币种地址', `s_price` varchar(64) NOT NULL COMMENT '出售价格', `c_name` varchar(32) NOT NULL COMMENT '缓存-名称', `c_job` int(11) NOT NULL COMMENT '缓存-职业', diff --git a/webapp/controller/MarketController.class.php b/webapp/controller/MarketController.class.php index e90104d7..bdc2611f 100644 --- a/webapp/controller/MarketController.class.php +++ b/webapp/controller/MarketController.class.php @@ -549,6 +549,7 @@ class MarketController extends BaseAuthedController array( 'token_id' => '', 'item_id' => $item_id, + 'status' => 0, 'owner_address' => $address, 'token_type' => 0, 'amount' => $amount, @@ -646,7 +647,7 @@ class MarketController extends BaseAuthedController $awardService = new services\AwardService(); $propertyChgService = new services\PropertyChgService(); $this->_addItems($items, $awardService, $propertyChgService); - + { //埋点 $event = [ @@ -655,7 +656,7 @@ class MarketController extends BaseAuthedController ]; LogService::productGold($event); } - + $this->_rspData( array( 'idx' => $idx,