1
This commit is contained in:
parent
c108b36e6f
commit
98523caee1
@ -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(
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user