This commit is contained in:
hujiabin 2024-07-04 16:38:31 +08:00
parent 44419cfc77
commit 3ec7592cf2

View File

@ -213,14 +213,14 @@ class Hero extends BaseModel {
"total_times" => $heroAtteMeta['roundPerDay'], "total_times" => $heroAtteMeta['roundPerDay'],
); );
$dto['is_avatar'] = 0; $dto['is_avatar'] = 0;
if ($dto['token_id'] >= 6240619010000001 && $dto['token_id'] <= 6240619010000100){ if (SERVER_ENV == _ONLINE) {
// $nft = Nft::getNft($dto['token_id']); if ($dto['token_id'] >= 6240619010000001 && $dto['token_id'] <= 6240619010000100){
// if ($nft){ $dto['is_avatar'] = 1;
// $tags = explode(",",$nft['tag']); }
// if (in_array(99,$tags)){ }else{
$dto['is_avatar'] = 1; if ($dto['token_id'] > 0){
// } $dto['is_avatar'] = 1;
// } }
} }
return $dto; return $dto;
} }
@ -314,14 +314,14 @@ class Hero extends BaseModel {
// } // }
// $dto['nft_address'] = $nft_address; // $dto['nft_address'] = $nft_address;
$dto['is_avatar'] = 0; $dto['is_avatar'] = 0;
if ($dto['token_id'] >= 6240619010000001 && $dto['token_id'] <= 6240619010000100){ if (SERVER_ENV == _ONLINE) {
// $nft = Nft::getNft($dto['token_id']); if ($dto['token_id'] >= 6240619010000001 && $dto['token_id'] <= 6240619010000100){
// if ($nft){ $dto['is_avatar'] = 1;
// $tags = explode(",",$nft['tag']); }
// if (in_array(99,$tags)){ }else{
$dto['is_avatar'] = 1; if ($dto['token_id'] > 0){
// } $dto['is_avatar'] = 1;
// } }
} }
return $dto; return $dto;