Merge branch 'hjb' of git.kingsome.cn:server/game2006api into hjb

This commit is contained in:
hujiabin 2024-06-19 16:27:44 +08:00
commit 3d5b9a2d63

View File

@ -130,11 +130,10 @@ class BlockChainController extends BaseAuthedController {
return; return;
} }
$isMint = true; $isMint = true;
$tokenId = $heroDb['token_id'];
if ($heroDb['token_id'] && $heroDb['activate']) { if ($heroDb['token_id'] && $heroDb['activate']) {
$isMint = false; $isMint = false;
} else { } else if (empty($tokenId) ){
$tokenId = $heroDb['token_id'];
if (!$tokenId) {
$tokenId = BuyRecord::genOrderId $tokenId = BuyRecord::genOrderId
( (
GAME_ID, GAME_ID,
@ -153,7 +152,6 @@ class BlockChainController extends BaseAuthedController {
return; return;
} }
} }
}
$this->internalActivate721Nft($tokenId, $this->internalActivate721Nft($tokenId,
Nft::HERO_TYPE, Nft::HERO_TYPE,
$heroDb['hero_uniid'], $heroDb['hero_uniid'],
@ -277,6 +275,7 @@ class BlockChainController extends BaseAuthedController {
'is_mint' => $isMint ? 1 : 0, 'is_mint' => $isMint ? 1 : 0,
'net_id' => NET_ID 'net_id' => NET_ID
); );
error_log(json_encode($params));
{ {
$url = self::getWeb3ServiceUrl(); $url = self::getWeb3ServiceUrl();
$response = ''; $response = '';