dever 6 vuotta sitten
vanhempi
commit
211faa7c81
1 muutettua tiedostoa jossa 11 lisäystä ja 1 poistoa
  1. 11 1
      main/lib/Cron.php

+ 11 - 1
main/lib/Cron.php

@@ -7,7 +7,7 @@ use Dever;
 class Cron
 {
     # 增加积分
-    public function scores1_api()
+    public function scores2_api()
     {
         //$where['start'] = Dever::maketime('2019-04-24 23:12:40');
         $where['start'] = Dever::maketime('2019-04-25 00:34:55');
@@ -54,6 +54,16 @@ class Cron
         */
     }
 
+    # 重新计算排行榜
+    public function pai_api()
+    {
+        # 购买小刊
+        $where['product_id'] = 28;
+        $where['status'] = 2;
+        $where['type'] = 1;
+        $data = Dever::db('journal/order')->state($where);
+    }
+
 
     # 收回多余的兑换码
     public function deleteCode_api()