|
@@ -7,23 +7,27 @@ use Dever;
|
|
|
class Cron
|
|
|
{
|
|
|
# 增加积分
|
|
|
- public function score_api()
|
|
|
+ public function scores_api()
|
|
|
{
|
|
|
- /*
|
|
|
- $where['start'] = Dever::maketime('2019-04-25 00:53:25');
|
|
|
- $where['end'] = Dever::maketime('2019-04-25 20:00:00');
|
|
|
+ //$where['start'] = Dever::maketime('2019-04-24 23:12:40');
|
|
|
+ $where['start'] = Dever::maketime('2019-04-25 00:34:55');
|
|
|
+ $where['end'] = Dever::maketime('2019-04-25 14:47:16');
|
|
|
$where['score_type'] = 1;
|
|
|
$data = Dever::db('score/action_log')->getDataByDate($where);
|
|
|
|
|
|
+ $test = Dever::input('test');
|
|
|
+ if ($test == 1) {
|
|
|
+ print_r($data);die;
|
|
|
+ }
|
|
|
if ($data) {
|
|
|
foreach ($data as $k => $v) {
|
|
|
Dever::load('score/lib/core.oper?log_id='.$v['id']);
|
|
|
}
|
|
|
}
|
|
|
return $data;
|
|
|
- */
|
|
|
|
|
|
# 购买小刊
|
|
|
+ /*
|
|
|
$where['product_id'] = Dever::input('journal_id', 28);
|
|
|
$where['type'] = 1;
|
|
|
$where['status'] = 2;
|
|
@@ -46,6 +50,7 @@ class Cron
|
|
|
$where['type'] = 2;
|
|
|
$where['status'] = 2;
|
|
|
$data = Dever::db('journal/order')->state($where);
|
|
|
+ */
|
|
|
}
|
|
|
|
|
|
|