Merge branch 'hjb' of git.kingsome.cn:server/game2006api into hjb
This commit is contained in:
commit
44419cfc77
@ -319,8 +319,6 @@ class OutAppNftController extends BaseController {
|
||||
$info['detail']['max_mining_days'] = $heroAtteMeta['validTime'];
|
||||
$info['detail']['wealth'] = floor($wealth * (1+$wealth_rate));
|
||||
$info['detail']['lucky'] = floor($lucky * (1+$lucky_rate));
|
||||
$info['detail']['wealth'] = '';
|
||||
$info['detail']['lucky'] = '';
|
||||
$info['detail']['hp'] = $heroAbility['hp'];
|
||||
$info['detail']['atk'] = $heroAbility['attack'];
|
||||
$info['detail']['def'] = $heroAbility['defence'];
|
||||
|
@ -128,6 +128,7 @@ class Nft extends BaseModel
|
||||
array_push($nftList, $row);
|
||||
}
|
||||
);
|
||||
error_log(json_encode($nftList));
|
||||
return $nftList;
|
||||
}
|
||||
|
||||
|
@ -84,7 +84,12 @@ class NftService extends BaseService {
|
||||
self::loadNft($openId, $name);
|
||||
$nftHash = getXVal(self::$userData[$openId], $name . 'Hash', array());
|
||||
$nftDb = getXVal($nftHash, $tokenId);
|
||||
return $nftDb && $nftDb['owner_address'] == $openId;
|
||||
//return $nftDb && $nftDb['owner_address'] == $openId;
|
||||
if (empty($nftDb)) {
|
||||
return null;
|
||||
}
|
||||
return $nftDb['owner_address'] == LOCK_CONTRACT_ADDRESS &&
|
||||
$nftDb['last_lock_address'] == $openId;
|
||||
}
|
||||
|
||||
private static function loadNft($openId, $name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user