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