This commit is contained in:
aozhiwei 2022-02-28 13:56:14 +08:00
parent dc87d70fdf
commit 403d860c3e
2 changed files with 3 additions and 2 deletions

View File

@ -19,7 +19,7 @@ class BigData extends BaseModel {
'type' => $type, 'type' => $type,
) )
); );
return $row ? $row['data'] : null; return $row ? json_decode($row['data'], true) : null;
} }

View File

@ -551,7 +551,7 @@ class MissionService extends BaseService {
{ {
$this->offerRewartdMission['refreshtime'] = myself()->_getNowTime(); $this->offerRewartdMission['refreshtime'] = myself()->_getNowTime();
$sentMissions = array(); $sentMissions = array();
foreach ($this->offerRewartdMission as $mission) { foreach ($this->offerRewartdMission['missions'] as $mission) {
if ($mission['sendtime'] > 0) { if ($mission['sendtime'] > 0) {
array_push($sentMissions, $mission); array_push($sentMissions, $mission);
} }
@ -578,6 +578,7 @@ class MissionService extends BaseService {
)); ));
} }
} }
BigData::setData(BigData::OFFER_REWARD_MISSION_TYPE, json_encode($this->offerRewartdMission));
} }
public function getOfferRewardMissions() public function getOfferRewardMissions()