diff --git a/sql/gamedb.sql b/sql/gamedb.sql index 44bda27f..736a6b14 100644 --- a/sql/gamedb.sql +++ b/sql/gamedb.sql @@ -1390,7 +1390,8 @@ CREATE TABLE `t_mall` ( `account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id', `item_id` int(11) NOT NULL DEFAULT '0' COMMENT '物品id', `item_num` bigint NOT NULL DEFAULT '0' COMMENT '物品数量', - `price` varchar(60) NOT NULL DEFAULT '' COMMENT '价格', + `currency` varchar(60) NOT NULL COMMENT 'currency', + `price` varchar(255) NOT NULL DEFAULT '' COMMENT 'price', `status` int(11) NOT NULL DEFAULT '0' COMMENT 'status', `createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', diff --git a/webapp/controller/MallController.class.php b/webapp/controller/MallController.class.php index 0e400580..79aee057 100644 --- a/webapp/controller/MallController.class.php +++ b/webapp/controller/MallController.class.php @@ -18,7 +18,12 @@ use services\BlockChainService; class MallController extends BaseAuthedController { - public function productOnline() + public function productList() + { + $page = getReqVal('page', 1); + } + + public function sell() { $address = $this->_getAddress(); if (!$address) { @@ -130,7 +135,7 @@ class MallController extends BaseAuthedController { $this->_rspOk(); } - public function productOffline() + public function cancel() { $idx = getReqVal('idx', '');