1
This commit is contained in:
parent
2c9c6378ab
commit
3c635ed188
@ -118,6 +118,7 @@ class BlockChainController extends BaseAuthedController {
|
|||||||
{
|
{
|
||||||
$transId = getReqVal('trans_id', '');
|
$transId = getReqVal('trans_id', '');
|
||||||
$result = getReqVal('result', '');
|
$result = getReqVal('result', '');
|
||||||
|
error_log($result);
|
||||||
Transaction::reportResult($transId, $result);
|
Transaction::reportResult($transId, $result);
|
||||||
myself()->_rspOk();
|
myself()->_rspOk();
|
||||||
}
|
}
|
||||||
@ -125,12 +126,17 @@ class BlockChainController extends BaseAuthedController {
|
|||||||
public function evolve721Nft()
|
public function evolve721Nft()
|
||||||
{
|
{
|
||||||
$type = getReqVal('type', '');
|
$type = getReqVal('type', '');
|
||||||
$tokenId1 = getReqVal('token_id1', '');
|
|
||||||
$tokenId2 = getReqVal('token_id2', '');
|
|
||||||
switch ($type) {
|
switch ($type) {
|
||||||
case 1:
|
case 1:
|
||||||
{
|
{
|
||||||
|
$tokenId1 = getReqVal('token_id1', '');
|
||||||
|
$tokenId2 = getReqVal('token_id2', '');
|
||||||
|
$nft1 = Hero::findByTokenId($tokenId1);
|
||||||
|
$nft2 = Hero::findByTokenId($tokenId2);
|
||||||
|
if (!$nft1 || $nft2) {
|
||||||
|
myself()->_rspErr(1, 'token paramater error');
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user