소스 검색

砸金蛋,礼物概览礼物排序要稳定

lizhen_gitee 1 년 전
부모
커밋
de9c2d76c9
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      application/api/controller/Eggnew.php

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

@@ -19,12 +19,12 @@ class Eggnew extends Api
      * 获取本期奖池列表
      */
     public function getThisJackpot() {
-        $type = input('type',1);
+        $type = input('type',3);
         $jackId = \app\common\model\EggJackpot::where(["status"=>1,'type'=>$type])->value("id");
         $egggiftModel = new \app\common\model\EggGift();
         $where = [];
         $where["Jackpot_id"] = $jackId;
-        $egggiftList = $egggiftModel->where($where)->group("gift_id")->order("price","desc")->select();
+        $egggiftList = $egggiftModel->where($where)->group("gift_id")->order("price desc,gift_id desc")->select();
         return $this->success("获取成功!",$egggiftList);
     }