wupengfei 3 年之前
父節點
當前提交
9614eb931e
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      application/api/controller/Qc.php

+ 10 - 0
application/api/controller/Qc.php

@@ -8,6 +8,16 @@ class Qc{
     {
         $sql = "SELECT uid , count(id) as num FROM `user_sign` where `month` = 11  GROUP BY uid  HAVING num > 6 ORDER BY num desc";
         $list = Db::query($sql);
+        foreach ($list as $lv)
+        {
+            $sign_data = Db::table('user_sign')
+                ->where('uid',$lv['uid'])
+                ->where('month','11')
+                ->order('id asc')
+                ->limit(7)
+                ->select();
+            var_dump($sign_data[6]['id']);
+        }
         var_dump($list);
     }