Browse Source

派对调整

lizhen_gitee 1 năm trước cách đây
mục cha
commit
0ecfd7ee74
1 tập tin đã thay đổi với 3 bổ sung7 xóa
  1. 3 7
      application/api/controller/Party.php

+ 3 - 7
application/api/controller/Party.php

@@ -491,10 +491,7 @@ class Party extends Common
      */
     public function getOnlieList() {
         $party_id = input('party_id',0,"intval"); // 直播间ID 逻辑ID
-        $page = input('page',1); // 分页
-        $pageNum = input('pageNum',10); // 分页
-        // 分页搜索构建
-        $pageStart = ($page-1)*$pageNum;
+
         if (!$party_id) {
             $this->error(__('Invalid parameters'));
         }
@@ -509,7 +506,7 @@ class Party extends Common
                 ->join('user_config_charm charm','user.charm_level = charm.level','LEFT')
                 ->join('user_config_wealth wealth','user.wealth_level = wealth.level','LEFT')
                 ->where(["user.id"=>["in",$user_ids],'user.is_stealth'=>0])
-                ->limit($pageStart,$pageNum)->select();
+                ->autopage()->select();
             $userList = list_domain_image($userList,['avatar','charm_image','wealth_image']);
         }
 
@@ -924,8 +921,7 @@ class Party extends Common
             $where["id"] = $partyInfo["user_id"];
             $userInfo = $userModel->field("avatar,nickname")->where($where)->find();
             // 获取技能信息
-            $skillList = Model("ViewUserSkill")->getSkillInfo($partyInfo["user_id"]);
-            $userInfo["skill"] = implode("/",$skillList);
+
             $partyInfo["userInfo"] = $userInfo;
             $partyInfo["party_hot"] = $this->changeW($partyInfo["party_hot"]);
         }