|
@@ -9,13 +9,16 @@ class Cron
|
|
|
|
|
|
public function score_api()
|
|
|
{
|
|
|
- $data = Dever::load('score/action_log')->getDataByDate();
|
|
|
+ $where['time'] = Dever::maketime('2019-04-24 20:00:00');
|
|
|
+ $where['score_type'] = 1;
|
|
|
+ $data = Dever::db('score/action_log')->getDataByDate($where);
|
|
|
|
|
|
if ($data) {
|
|
|
foreach ($data as $k => $v) {
|
|
|
Dever::load('score/lib/core.oper?log_id='.$v['id']);
|
|
|
}
|
|
|
}
|
|
|
+ return $data;
|
|
|
}
|
|
|
|
|
|
|