diff --git a/third_party/phpcommon b/third_party/phpcommon index e2a4c1c2..eeeac902 160000 --- a/third_party/phpcommon +++ b/third_party/phpcommon @@ -1 +1 @@ -Subproject commit e2a4c1c276fc98ce01cb1af8b0b98323d9f4e2c3 +Subproject commit eeeac90264e4cd3d4de575d9ad504cacd85cb288 diff --git a/webapp/controller/MarketController.class.php b/webapp/controller/MarketController.class.php index abaeba9d..d823cf0d 100644 --- a/webapp/controller/MarketController.class.php +++ b/webapp/controller/MarketController.class.php @@ -284,7 +284,6 @@ class MarketController extends BaseController { $orderId = BuyRecord::genOrderId($gameId, $funcId, myself()->_getNowTime(), - $itemMeta['nft_image_id'], $buyerAddress); $tokenId = $orderId; $tokenType = 0; diff --git a/webapp/models/BuyRecord.php b/webapp/models/BuyRecord.php index 817f84e8..539d09d0 100644 --- a/webapp/models/BuyRecord.php +++ b/webapp/models/BuyRecord.php @@ -10,7 +10,7 @@ use phpcommon\SqlHelper; class BuyRecord extends BaseModel { - public static function genOrderId($gameId, $funcId, $time, $imgIdx, $buyerAddress) + public static function genOrderId($gameId, $funcId, $time, $buyerAddress) { SqlHelper::insert (myself()->_getMarketMysql(), @@ -29,7 +29,7 @@ class BuyRecord extends BaseModel { 'errmsg' => 'server internal error' ))); } - $orderId = phpcommon\genOrderId($gameId, $funcId, $time, $lastIdx, $imgIdx); + $orderId = phpcommon\genOrderId($gameId, $funcId, $time, $lastIdx); if (!phpcommon\isValidOrderId($orderId)) { die(json_encode(array( 'errcode' => 500,