dever 6 年之前
父节点
当前提交
c8dbd20759
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      main/lib/Cron.php

+ 3 - 2
main/lib/Cron.php

@@ -57,10 +57,11 @@ class Cron
     # 重新计算排行榜
     public function pai_api()
     {
-        $data = Dever::db('act/score')->state(array('type' => 4, 'data_id' => 28));
+        $id = Dever::input('product_id', 28);
+        $data = Dever::db('act/score')->state(array('type' => 4, 'data_id' => $id));
 
         # 购买小刊
-        $where['product_id'] = Dever::input('product_id', 28);
+        $where['product_id'] = $id;
         $where['status'] = 2;
         //$this->score = 20;