1
This commit is contained in:
parent
f20daa161c
commit
acb02d987d
@ -219,12 +219,12 @@ class BaseAuthedController extends BaseController {
|
|||||||
break;
|
break;
|
||||||
case V_ITEM_ACTIVE:
|
case V_ITEM_ACTIVE:
|
||||||
{
|
{
|
||||||
$addItem = max(0, mt\Parameter::getVal('activeness_limit', 0) - $this->_get(TN_DAILY_ACTIVE, 0));
|
$addItem = max(0, mt\Parameter::getVal('activeness_limit', 0) - $this->_getDailyV(TN_DAILY_ACTIVE, 0));
|
||||||
$addItem = min($addItem, $itemNum);
|
$addItem = min($addItem, $itemNum);
|
||||||
if ($addItem > 0) {
|
if ($addItem > 0) {
|
||||||
$this->_incV(TN_ACTIVE, 0, $itemNum);
|
$this->_incV(TN_ACTIVE, 0, $itemNum);
|
||||||
$this->_incV(TN_DAILY_ACTIVE, 0, $itemNum);
|
$this->_incDailyV(TN_DAILY_ACTIVE, 0, $itemNum);
|
||||||
$this->_incV(TN_WEEKLY_ACTIVE, 0, $itemNum);
|
$this->_incWeeklyV(TN_WEEKLY_ACTIVE, 0, $itemNum);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -104,7 +104,7 @@ class MissionController extends BaseAuthedController {
|
|||||||
$specMissionDto['state'] == Mission::RECEIVEABLE_STATE;
|
$specMissionDto['state'] == Mission::RECEIVEABLE_STATE;
|
||||||
}
|
}
|
||||||
$this->_rspData(array(
|
$this->_rspData(array(
|
||||||
'current_active_value' => $this->_getV(TN_DAILY_ACTIVE, 0),
|
'current_active_value' => min($this->_getV(TN_ACTIVE, 0), mt\Parameter::getVal('max_activity', 0)),
|
||||||
'max_active_value' => mt\Parameter::getVal('max_activity', 0),
|
'max_active_value' => mt\Parameter::getVal('max_activity', 0),
|
||||||
'mission_list1' => $missionDtoList1,
|
'mission_list1' => $missionDtoList1,
|
||||||
'mission_list2' => $missionDtoList2
|
'mission_list2' => $missionDtoList2
|
||||||
|
@ -554,7 +554,6 @@ class MissionService extends BaseService {
|
|||||||
|
|
||||||
private function refreshOfferRewardMission()
|
private function refreshOfferRewardMission()
|
||||||
{
|
{
|
||||||
error_log(json_encode($this->offerRewartdMission));
|
|
||||||
$wantedRefreshMissionNum = mt\Parameter::getVal
|
$wantedRefreshMissionNum = mt\Parameter::getVal
|
||||||
('wanted_refresh_mission_num', 0);
|
('wanted_refresh_mission_num', 0);
|
||||||
if ($wantedRefreshMissionNum <=
|
if ($wantedRefreshMissionNum <=
|
||||||
|
Loading…
x
Reference in New Issue
Block a user