1
This commit is contained in:
parent
c108b36e6f
commit
98523caee1
@ -164,7 +164,11 @@ class MissionController extends BaseAuthedController {
|
|||||||
$missionDb = Mission::find($missionId);
|
$missionDb = Mission::find($missionId);
|
||||||
$missionDto = $this->missionService->getMissionDto(
|
$missionDto = $this->missionService->getMissionDto(
|
||||||
$this->userInfo, $this->seasonDb, $missionDb, $missionMeta);
|
$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->addHeroChg();
|
||||||
$this->propertyChgService->addGunChg();
|
$this->propertyChgService->addGunChg();
|
||||||
$this->_rspData(array(
|
$this->_rspData(array(
|
||||||
|
@ -61,16 +61,16 @@ class TeamController extends BaseAuthedController {
|
|||||||
$this->_rspErr(1, "You can't challenge beyond your level");
|
$this->_rspErr(1, "You can't challenge beyond your level");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$temp = array();
|
// $temp = array();
|
||||||
Hero::getHeroList(function ($row) use ($pveGame,&$temp) {
|
// Hero::getHeroList(function ($row) use ($pveGame,&$temp) {
|
||||||
if ($row['quality']>=$pveGame['gemini_lv']){
|
// if ($row['quality']>=$pveGame['gemini_lv']){
|
||||||
array_push($temp,$row);
|
// array_push($temp,$row);
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
if (count($temp)<1){
|
// if (count($temp)<1){
|
||||||
$this->_rspErr(1, 'Lack of qualified heroes');
|
// $this->_rspErr(1, 'Lack of qualified heroes');
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
$userDto = User::toPreset($userDb);
|
$userDto = User::toPreset($userDb);
|
||||||
$userDto['is_leader'] = 1;
|
$userDto['is_leader'] = 1;
|
||||||
@ -137,16 +137,16 @@ class TeamController extends BaseAuthedController {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$pveGame = \mt\PveGemini::get($teamDb['pve_instance_id']);
|
$pveGame = \mt\PveGemini::get($teamDb['pve_instance_id']);
|
||||||
$temp = array();
|
// $temp = array();
|
||||||
Hero::getHeroList(function ($row) use ($pveGame,&$temp) {
|
// Hero::getHeroList(function ($row) use ($pveGame,&$temp) {
|
||||||
if ($row['quality']>=$pveGame['gemini_lv']){
|
// if ($row['quality']>=$pveGame['gemini_lv']){
|
||||||
array_push($temp,$row);
|
// array_push($temp,$row);
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
if (count($temp)<1){
|
// if (count($temp)<1){
|
||||||
$this->_rspErr(1, 'Lack of qualified heroes');
|
// $this->_rspErr(1, 'Lack of qualified heroes');
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
$userDto = User::toPreset($userDb);
|
$userDto = User::toPreset($userDb);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user