1
This commit is contained in:
parent
3634523778
commit
846c5140ed
@ -51,16 +51,18 @@ class BlockChainController extends BaseAuthedController {
|
||||
{
|
||||
$trans = array();
|
||||
foreach (Transaction::all() as $tran) {
|
||||
array_push(
|
||||
$trans,
|
||||
array(
|
||||
'trans_id' => $tran['trans_id'],
|
||||
'item_id' => $tran['item_id'],
|
||||
'action' => Transaction::getActionDesc($tran),
|
||||
'status' => Transaction::getStatusDesc($tran),
|
||||
'time' => $tran['createtime'],
|
||||
)
|
||||
);
|
||||
if (myself()->_getNowTime() - $tran['createtime'] < 24*3600){
|
||||
array_push(
|
||||
$trans,
|
||||
array(
|
||||
'trans_id' => $tran['trans_id'],
|
||||
'item_id' => $tran['item_id'],
|
||||
'action' => Transaction::getActionDesc($tran),
|
||||
'status' => Transaction::getStatusDesc($tran),
|
||||
'time' => $tran['createtime'],
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
$this->_rspData(array(
|
||||
'transactions' => $trans
|
||||
|
@ -580,6 +580,7 @@ class MissionService extends BaseService {
|
||||
|
||||
private function refreshOfferRewardMission()
|
||||
{
|
||||
$this->offerRewartdMission['refreshtime'] = myself()->_getDaySeconds(myself()->_getNowTime());
|
||||
$wantedRefreshMissionNum = mt\Parameter::getVal
|
||||
('wanted_refresh_mission_num', 0);
|
||||
if (count($this->offerRewartdMission['missions']) >= 10){
|
||||
@ -626,7 +627,7 @@ class MissionService extends BaseService {
|
||||
));
|
||||
}
|
||||
}
|
||||
$this->offerRewartdMission['refreshtime'] = myself()->_getDaySeconds(myself()->_getNowTime());
|
||||
|
||||
$this->saveOfferRewardMission();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user