dever 6 years ago
parent
commit
d13b1a6eba
1 changed files with 1 additions and 8 deletions
  1. 1 8
      main/lib/Cron.php

+ 1 - 8
main/lib/Cron.php

@@ -55,7 +55,7 @@ class Cron
     }
 
     # 重新计算排行榜
-    public function pai1_api()
+    public function pai2_api()
     {
         $id = Dever::input('product_id', 28);
         $data = Dever::db('act/score')->state(array('type' => 4, 'data_id' => $id));
@@ -82,13 +82,6 @@ class Cron
             print_r($score);
 
             Dever::db('act/score')->update(array('where_id' => $v['id'], 'score' => $score));
-            /*
-            if ($score > 0) {
-                Dever::db('act/score')->update(array('where_id' => $v['id'], 'score' => $score));
-            } else {
-                Dever::db('act/score')->update(array('where_id' => $v['id'], 'score' => 'null'));
-            }
-            */
         }
 
         return 'ok';