From 5cdb3ab66745d9daedba0bff911be653a5a6093d Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 29 Jan 2022 10:20:05 +0800 Subject: [PATCH] 1 --- sql/marketdb.sql | 2 +- webapp/controller/MarketController.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/marketdb.sql b/sql/marketdb.sql index 041e040d..0f76c5e2 100644 --- a/sql/marketdb.sql +++ b/sql/marketdb.sql @@ -48,7 +48,7 @@ CREATE TABLE `t_box_order` ( `suspend_reason` mediumblob COMMENT '挂起原因', `buyer_address` varchar(60) NOT NULL DEFAULT '' COMMENT '购买者', `token_id` varchar(60) NOT NULL DEFAULT '' COMMENT 'token_id', - `price` bigint NOT NULL DEFAULT '0' COMMENT '价格', + `price` varchar(60) NOT NULL DEFAULT '' COMMENT 'price', `payment_token_address` varchar(60) NOT NULL DEFAULT '' COMMENT '货币地址', `nonce` varchar(60) NOT NULL DEFAULT '' COMMENT 'nonce', `signature` varchar(255) NOT NULL DEFAULT '' COMMENT '签名', diff --git a/webapp/controller/MarketController.class.php b/webapp/controller/MarketController.class.php index 82fa0ae7..6c758002 100644 --- a/webapp/controller/MarketController.class.php +++ b/webapp/controller/MarketController.class.php @@ -126,7 +126,7 @@ class MarketController extends BaseController { { $type = getReqVal('type', ''); $buyerAddress = getReqVal('buyer_address', ''); - $price = hexdec(getReqVal('price', '')); + $price = getReqVal('price', ''); $paymentTokenAddress = getReqVal('payment_token_address', ''); $nonce = getReqVal('nonce', ''); $signature = getReqVal('signature', '');