1
This commit is contained in:
parent
050cb4117c
commit
5a8ef08047
@ -213,14 +213,14 @@ class Hero extends BaseModel {
|
||||
"total_times" => $heroAtteMeta['roundPerDay'],
|
||||
);
|
||||
$dto['is_avatar'] = 0;
|
||||
if ($dto['token_id']){
|
||||
$nft = Nft::getNft($dto['token_id']);
|
||||
if ($nft){
|
||||
$tags = explode(",",$nft['tag']);
|
||||
if (in_array(99,$tags)){
|
||||
if ($dto['token_id'] >= 6240619010000001 && $dto['token_id'] <= 6240619010000100){
|
||||
// $nft = Nft::getNft($dto['token_id']);
|
||||
// if ($nft){
|
||||
// $tags = explode(",",$nft['tag']);
|
||||
// if (in_array(99,$tags)){
|
||||
$dto['is_avatar'] = 1;
|
||||
}
|
||||
}
|
||||
// }
|
||||
// }
|
||||
}
|
||||
return $dto;
|
||||
}
|
||||
@ -314,14 +314,14 @@ class Hero extends BaseModel {
|
||||
// }
|
||||
// $dto['nft_address'] = $nft_address;
|
||||
$dto['is_avatar'] = 0;
|
||||
if ($dto['token_id']){
|
||||
$nft = Nft::getNft($dto['token_id']);
|
||||
if ($nft){
|
||||
$tags = explode(",",$nft['tag']);
|
||||
if (in_array(99,$tags)){
|
||||
if ($dto['token_id'] >= 6240619010000001 && $dto['token_id'] <= 6240619010000100){
|
||||
// $nft = Nft::getNft($dto['token_id']);
|
||||
// if ($nft){
|
||||
// $tags = explode(",",$nft['tag']);
|
||||
// if (in_array(99,$tags)){
|
||||
$dto['is_avatar'] = 1;
|
||||
}
|
||||
}
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
return $dto;
|
||||
|
Loading…
x
Reference in New Issue
Block a user