1
This commit is contained in:
parent
44419cfc77
commit
3ec7592cf2
@ -213,14 +213,14 @@ class Hero extends BaseModel {
|
||||
"total_times" => $heroAtteMeta['roundPerDay'],
|
||||
);
|
||||
$dto['is_avatar'] = 0;
|
||||
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;
|
||||
// }
|
||||
// }
|
||||
if (SERVER_ENV == _ONLINE) {
|
||||
if ($dto['token_id'] >= 6240619010000001 && $dto['token_id'] <= 6240619010000100){
|
||||
$dto['is_avatar'] = 1;
|
||||
}
|
||||
}else{
|
||||
if ($dto['token_id'] > 0){
|
||||
$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'] >= 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;
|
||||
// }
|
||||
// }
|
||||
if (SERVER_ENV == _ONLINE) {
|
||||
if ($dto['token_id'] >= 6240619010000001 && $dto['token_id'] <= 6240619010000100){
|
||||
$dto['is_avatar'] = 1;
|
||||
}
|
||||
}else{
|
||||
if ($dto['token_id'] > 0){
|
||||
$dto['is_avatar'] = 1;
|
||||
}
|
||||
}
|
||||
|
||||
return $dto;
|
||||
|
Loading…
x
Reference in New Issue
Block a user