Merge branch 'hjb' of git.kingsome.cn:server/game2006api into hjb
This commit is contained in:
commit
3d5b9a2d63
@ -130,11 +130,10 @@ class BlockChainController extends BaseAuthedController {
|
||||
return;
|
||||
}
|
||||
$isMint = true;
|
||||
$tokenId = $heroDb['token_id'];
|
||||
if ($heroDb['token_id'] && $heroDb['activate']) {
|
||||
$isMint = false;
|
||||
} else {
|
||||
$tokenId = $heroDb['token_id'];
|
||||
if (!$tokenId) {
|
||||
} else if (empty($tokenId) ){
|
||||
$tokenId = BuyRecord::genOrderId
|
||||
(
|
||||
GAME_ID,
|
||||
@ -153,7 +152,6 @@ class BlockChainController extends BaseAuthedController {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
$this->internalActivate721Nft($tokenId,
|
||||
Nft::HERO_TYPE,
|
||||
$heroDb['hero_uniid'],
|
||||
@ -277,6 +275,7 @@ class BlockChainController extends BaseAuthedController {
|
||||
'is_mint' => $isMint ? 1 : 0,
|
||||
'net_id' => NET_ID
|
||||
);
|
||||
error_log(json_encode($params));
|
||||
{
|
||||
$url = self::getWeb3ServiceUrl();
|
||||
$response = '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user