1
This commit is contained in:
parent
3e7e8da49b
commit
cf8121f6dd
2
third_party/phpcommon
vendored
2
third_party/phpcommon
vendored
@ -1 +1 @@
|
|||||||
Subproject commit e2a4c1c276fc98ce01cb1af8b0b98323d9f4e2c3
|
Subproject commit eeeac90264e4cd3d4de575d9ad504cacd85cb288
|
@ -284,7 +284,6 @@ class MarketController extends BaseController {
|
|||||||
$orderId = BuyRecord::genOrderId($gameId,
|
$orderId = BuyRecord::genOrderId($gameId,
|
||||||
$funcId,
|
$funcId,
|
||||||
myself()->_getNowTime(),
|
myself()->_getNowTime(),
|
||||||
$itemMeta['nft_image_id'],
|
|
||||||
$buyerAddress);
|
$buyerAddress);
|
||||||
$tokenId = $orderId;
|
$tokenId = $orderId;
|
||||||
$tokenType = 0;
|
$tokenType = 0;
|
||||||
|
@ -10,7 +10,7 @@ use phpcommon\SqlHelper;
|
|||||||
|
|
||||||
class BuyRecord extends BaseModel {
|
class BuyRecord extends BaseModel {
|
||||||
|
|
||||||
public static function genOrderId($gameId, $funcId, $time, $imgIdx, $buyerAddress)
|
public static function genOrderId($gameId, $funcId, $time, $buyerAddress)
|
||||||
{
|
{
|
||||||
SqlHelper::insert
|
SqlHelper::insert
|
||||||
(myself()->_getMarketMysql(),
|
(myself()->_getMarketMysql(),
|
||||||
@ -29,7 +29,7 @@ class BuyRecord extends BaseModel {
|
|||||||
'errmsg' => 'server internal error'
|
'errmsg' => 'server internal error'
|
||||||
)));
|
)));
|
||||||
}
|
}
|
||||||
$orderId = phpcommon\genOrderId($gameId, $funcId, $time, $lastIdx, $imgIdx);
|
$orderId = phpcommon\genOrderId($gameId, $funcId, $time, $lastIdx);
|
||||||
if (!phpcommon\isValidOrderId($orderId)) {
|
if (!phpcommon\isValidOrderId($orderId)) {
|
||||||
die(json_encode(array(
|
die(json_encode(array(
|
||||||
'errcode' => 500,
|
'errcode' => 500,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user