1
This commit is contained in:
parent
13a42284f9
commit
7cb302e41a
@ -110,14 +110,15 @@ class HashRateService extends BaseService
|
||||
break;
|
||||
//指定英雄升阶数
|
||||
case AchievementsPower::HERO_UP_QUALITY : {
|
||||
$condition = $taskMate['condition'];
|
||||
$quality = 0;
|
||||
Hero::getHeroList(function ($row) use ($condition,&$quality) {
|
||||
if ($row['hero_id'] == $condition && $row['quality'] > $quality){
|
||||
$quality = $row['quality'];
|
||||
$state = false;
|
||||
Hero::getHeroList(function ($row) use ($taskMate,&$state) {
|
||||
if ($row['hero_id'] == $taskMate['condition'] && $row['quality'] >= $taskMate['Completed_quantity']){
|
||||
$state = true;
|
||||
}
|
||||
});
|
||||
$taskDto['current'] = $quality;
|
||||
if ($state){
|
||||
$taskDto['current'] = $taskMate['Completed_quantity'];
|
||||
}
|
||||
}
|
||||
break;
|
||||
//拥有英雄nft数
|
||||
|
Loading…
x
Reference in New Issue
Block a user