This commit is contained in:
aozhiwei 2022-02-16 14:49:32 +08:00
parent 3e7e8da49b
commit cf8121f6dd
3 changed files with 3 additions and 4 deletions

@ -1 +1 @@
Subproject commit e2a4c1c276fc98ce01cb1af8b0b98323d9f4e2c3
Subproject commit eeeac90264e4cd3d4de575d9ad504cacd85cb288

View File

@ -284,7 +284,6 @@ class MarketController extends BaseController {
$orderId = BuyRecord::genOrderId($gameId,
$funcId,
myself()->_getNowTime(),
$itemMeta['nft_image_id'],
$buyerAddress);
$tokenId = $orderId;
$tokenType = 0;

View File

@ -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,