| 
					
				 | 
			
			
				@@ -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';
 
			 |