Merge branch 'james_bc' of git.kingsome.cn:server/game2006api into james_bc
This commit is contained in:
commit
6cc11aa665
@ -103,6 +103,7 @@ class BlockChainController extends BaseAuthedController {
|
||||
myself()->_rspErr(1, 'gun not found');
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
break;
|
||||
default:
|
||||
@ -125,6 +126,7 @@ class BlockChainController extends BaseAuthedController {
|
||||
|
||||
public function evolve721Nft()
|
||||
{
|
||||
error_log(json_encode($_REQUEST));
|
||||
$type = getReqVal('type', '');
|
||||
$tokenId1 = getReqVal('token_id1', '');
|
||||
$tokenId2 = getReqVal('token_id2', '');
|
||||
@ -279,6 +281,14 @@ class BlockChainController extends BaseAuthedController {
|
||||
$specHeros = array();
|
||||
$specGuns = array();
|
||||
mt\Item::groupFragment($tokenIds, $heros, $guns, $specHeros, $specGuns);
|
||||
error_log(json_encode(array(
|
||||
$tokenIds,
|
||||
$heros,
|
||||
$guns,
|
||||
$specHeros,
|
||||
$specGuns,
|
||||
json_encode($_REQUEST)
|
||||
)));
|
||||
if (count($tokenIds) != (
|
||||
count($heros) + count($guns) + count($specHeros) + count($specGuns)
|
||||
)) {
|
||||
@ -298,11 +308,13 @@ class BlockChainController extends BaseAuthedController {
|
||||
myself()->_rspErr(101, 'token_ids paramater error');
|
||||
return;
|
||||
}
|
||||
$tokenType = Nft::HERO_TYPE;
|
||||
} else if (count($guns) > 0) {
|
||||
if (count($guns) != 8 || count($specHeros) > 0) {
|
||||
myself()->_rspErr(101, 'token_ids paramater error');
|
||||
return;
|
||||
}
|
||||
$tokenType = Nft::GUN_TYPE;
|
||||
} else {
|
||||
myself()->_rspErr(101, 'token_ids paramater error');
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user