Procházet zdrojové kódy

排行榜加用户ID

zhangxiaobin před 1 rokem
rodič
revize
1531e7fc18
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      application/api/controller/Index.php

+ 2 - 2
application/api/controller/Index.php

@@ -240,7 +240,7 @@ class Index extends Api
         $where = [];
         $where["a.createtime"] = ["gt",$timeArr[$time]];
         $list = model('GiftUserParty')->alias("a")
-            ->field("sum(a.value) as total_price,u.avatar,u.nickname")
+            ->field("sum(a.value) as total_price,a.user_id,u.avatar,u.nickname")
             ->where($where)
             ->join("hx_user u","u.id = a.user_id")
             ->group("a.user_to_id")
@@ -290,7 +290,7 @@ class Index extends Api
         $where["a.type"] = ["in",[0,2,3,5,6,11,13]];//查看wallet.php文件
         $where["a.createtime"] = ["gt",$timeArr[$time]];
         $list = model('UserJewelLog')->alias("a")
-            ->field("sum(a.value) as total_price,u.avatar,u.nickname")
+            ->field("sum(a.value) as total_price,a.user_id,u.avatar,u.nickname")
             ->where($where)
             ->join("hx_user u","u.id = a.user_id")
             ->group("a.user_id")