This commit is contained in:
hujiabin 2023-03-24 20:43:24 +08:00
parent c108b36e6f
commit 98523caee1
2 changed files with 25 additions and 21 deletions

View File

@ -164,7 +164,11 @@ class MissionController extends BaseAuthedController {
$missionDb = Mission::find($missionId);
$missionDto = $this->missionService->getMissionDto(
$this->userInfo, $this->seasonDb, $missionDb, $missionMeta);
$this->_incDailyV(TN_DAILY_COMPLETE_TASK_NUM, 0, 1);
if ( $missionMeta['type'] == \mt\Task::DAILY_MISSON_TYPE &&
! $missionMeta['subtype'] ){
$this->_incDailyV(TN_DAILY_COMPLETE_TASK_NUM, 0, 1);
}
$this->propertyChgService->addHeroChg();
$this->propertyChgService->addGunChg();
$this->_rspData(array(

View File

@ -61,16 +61,16 @@ class TeamController extends BaseAuthedController {
$this->_rspErr(1, "You can't challenge beyond your level");
return;
}
$temp = array();
Hero::getHeroList(function ($row) use ($pveGame,&$temp) {
if ($row['quality']>=$pveGame['gemini_lv']){
array_push($temp,$row);
}
});
if (count($temp)<1){
$this->_rspErr(1, 'Lack of qualified heroes');
return;
}
// $temp = array();
// Hero::getHeroList(function ($row) use ($pveGame,&$temp) {
// if ($row['quality']>=$pveGame['gemini_lv']){
// array_push($temp,$row);
// }
// });
// if (count($temp)<1){
// $this->_rspErr(1, 'Lack of qualified heroes');
// return;
// }
}
$userDto = User::toPreset($userDb);
$userDto['is_leader'] = 1;
@ -137,16 +137,16 @@ class TeamController extends BaseAuthedController {
return;
}
$pveGame = \mt\PveGemini::get($teamDb['pve_instance_id']);
$temp = array();
Hero::getHeroList(function ($row) use ($pveGame,&$temp) {
if ($row['quality']>=$pveGame['gemini_lv']){
array_push($temp,$row);
}
});
if (count($temp)<1){
$this->_rspErr(1, 'Lack of qualified heroes');
return;
}
// $temp = array();
// Hero::getHeroList(function ($row) use ($pveGame,&$temp) {
// if ($row['quality']>=$pveGame['gemini_lv']){
// array_push($temp,$row);
// }
// });
// if (count($temp)<1){
// $this->_rspErr(1, 'Lack of qualified heroes');
// return;
// }
}
$userDto = User::toPreset($userDb);