allen 3 жил өмнө
parent
commit
60f9215766

+ 8 - 8
app/index/controller/Index.php

@@ -456,17 +456,17 @@ class Index extends Controller
 
     public function rankingDrawList()
     {
-        $activity = Db::table('awards_activity')->where('end_at', '<', time())->find();
+//        $activity = Db::table('awards_activity')->where('end_at', '<', time())->find();
         $isBeginActivity = 1;
-        if ($activity) {
-            $isBeginActivity = 0;
-        }
+//        if ($activity) {
+//            $isBeginActivity = 0;
+//        }
 
         $orders = [];
-        if ($isBeginActivity == 0) {
-            $orders = Db::query("select u.nickname, u.portrait, l.uid, l.duration, l.number from awards_user_task_log as l left join awards_user_info as u on l.uid = u.uid
-where u.portrait != '' and u.portrait is not null and l.number >= 15 group by l.uid order by l.id desc limit 50");
-        }
+//        if ($isBeginActivity == 0) {
+//            $orders = Db::query("select u.nickname, u.portrait, l.uid, l.duration, l.number from awards_user_task_log as l left join awards_user_info as u on l.uid = u.uid
+//where u.portrait != '' and u.portrait is not null and l.number >= 15 group by l.uid order by l.id desc limit 50");
+//        }
 
         return $this->successResponse([
             'isBeginActivity' => $isBeginActivity,