Quellcode durchsuchen

排行榜加用户ID

zhangxiaobin vor 1 Jahr
Ursprung
Commit
1531e7fc18
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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")