dever 6 years ago
parent
commit
a986ff0005
1 changed files with 10 additions and 5 deletions
  1. 10 5
      main/lib/Cron.php

+ 10 - 5
main/lib/Cron.php

@@ -7,23 +7,27 @@ use Dever;
 class Cron
 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;
         $where['score_type'] = 1;
         $data = Dever::db('score/action_log')->getDataByDate($where);
         $data = Dever::db('score/action_log')->getDataByDate($where);
 
 
+        $test = Dever::input('test');
+        if ($test == 1) {
+            print_r($data);die;
+        }
         if ($data) {
         if ($data) {
             foreach ($data as $k => $v) {
             foreach ($data as $k => $v) {
                 Dever::load('score/lib/core.oper?log_id='.$v['id']);
                 Dever::load('score/lib/core.oper?log_id='.$v['id']);
             }
             }
         }
         }
         return $data;
         return $data;
-        */
 
 
         # 购买小刊
         # 购买小刊
+        /*
         $where['product_id'] = Dever::input('journal_id', 28);
         $where['product_id'] = Dever::input('journal_id', 28);
         $where['type'] = 1;
         $where['type'] = 1;
         $where['status'] = 2;
         $where['status'] = 2;
@@ -46,6 +50,7 @@ class Cron
         $where['type'] = 2;
         $where['type'] = 2;
         $where['status'] = 2;
         $where['status'] = 2;
         $data = Dever::db('journal/order')->state($where);
         $data = Dever::db('journal/order')->state($where);
+        */
     }
     }