allen 3 년 전
부모
커밋
aa7a79d019
1개의 변경된 파일0개의 추가작업 그리고 10개의 파일을 삭제
  1. 0 10
      app/index/controller/Index.php

+ 0 - 10
app/index/controller/Index.php

@@ -266,11 +266,6 @@ class Index extends Controller
      */
     public function topRanking()
     {
-        $activity = Db::table('awards_activity')->where('begin_at', '<=', time())
-            ->where('end_at', '>=', time())->find();
-        if (empty($activity)) {
-            return $this->response(5002, '活动末开始');
-        }
 
         $ranking = Db::table('awards_user_task_log')->alias("l")
             ->leftJoin('awards_user_info u', 'l.uid = u.uid')
@@ -307,11 +302,6 @@ class Index extends Controller
      */
     public function newRanking()
     {
-        $activity = Db::table('awards_activity')->where('begin_at', '<=', time())
-            ->where('end_at', '>=', time())->find();
-        if (empty($activity)) {
-            return $this->response(5002, '活动末开始');
-        }
 
         $ranking = Db::table('awards_user_task_log')->alias("l")
             ->leftJoin('awards_user_info u', 'l.uid = u.uid')