This commit is contained in:
hujiabin 2022-11-28 14:39:38 +08:00
parent 3634523778
commit 846c5140ed
2 changed files with 14 additions and 11 deletions

View File

@ -51,6 +51,7 @@ class BlockChainController extends BaseAuthedController {
{ {
$trans = array(); $trans = array();
foreach (Transaction::all() as $tran) { foreach (Transaction::all() as $tran) {
if (myself()->_getNowTime() - $tran['createtime'] < 24*3600){
array_push( array_push(
$trans, $trans,
array( array(
@ -62,6 +63,7 @@ class BlockChainController extends BaseAuthedController {
) )
); );
} }
}
$this->_rspData(array( $this->_rspData(array(
'transactions' => $trans 'transactions' => $trans
)); ));

View File

@ -580,6 +580,7 @@ class MissionService extends BaseService {
private function refreshOfferRewardMission() private function refreshOfferRewardMission()
{ {
$this->offerRewartdMission['refreshtime'] = myself()->_getDaySeconds(myself()->_getNowTime());
$wantedRefreshMissionNum = mt\Parameter::getVal $wantedRefreshMissionNum = mt\Parameter::getVal
('wanted_refresh_mission_num', 0); ('wanted_refresh_mission_num', 0);
if (count($this->offerRewartdMission['missions']) >= 10){ if (count($this->offerRewartdMission['missions']) >= 10){
@ -626,7 +627,7 @@ class MissionService extends BaseService {
)); ));
} }
} }
$this->offerRewartdMission['refreshtime'] = myself()->_getDaySeconds(myself()->_getNowTime());
$this->saveOfferRewardMission(); $this->saveOfferRewardMission();
} }