1
This commit is contained in:
parent
83b9ee3b08
commit
ff0c6d9ee8
@ -28,7 +28,7 @@ class MintNftHero
|
||||
$tokenId = getReqVal('tokenId', '');
|
||||
if (!$tokenId){
|
||||
echo json_encode(array(
|
||||
'errcode' => 1,
|
||||
'errcode' => 2,
|
||||
'errmsg' => "tokenId empty",
|
||||
));
|
||||
die;
|
||||
@ -37,7 +37,7 @@ class MintNftHero
|
||||
$itemMeta = Item::get($itemId);
|
||||
if (!$itemMeta || $itemMeta['type'] != Item::HERO_TYPE){
|
||||
echo json_encode(array(
|
||||
'errcode' => 1,
|
||||
'errcode' => 2,
|
||||
'errmsg' => "itemId error",
|
||||
));
|
||||
die;
|
||||
@ -51,7 +51,7 @@ class MintNftHero
|
||||
self::TYPE_5,
|
||||
))){
|
||||
echo json_encode(array(
|
||||
'errcode' => 1,
|
||||
'errcode' => 2,
|
||||
'errmsg' => "quality error",
|
||||
));
|
||||
die;
|
||||
@ -60,7 +60,7 @@ class MintNftHero
|
||||
if (!$this->verifyNftTokenId($tokenId)){
|
||||
error_log("The token id does not exist");
|
||||
echo json_encode(array(
|
||||
'errcode' => 1,
|
||||
'errcode' => 2,
|
||||
'errmsg' => "tokenId error",
|
||||
));
|
||||
die;
|
||||
@ -75,7 +75,7 @@ class MintNftHero
|
||||
}
|
||||
|
||||
|
||||
$this->internalAddHero($tokenId,$itemId,$quality);
|
||||
// // $this->internalAddHero($tokenId,$itemId,$quality);
|
||||
echo json_encode(array(
|
||||
'errcode' => 0,
|
||||
'errmsg' => "callback success",
|
||||
@ -181,4 +181,4 @@ class MintNftHero
|
||||
return $attr;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user