فهرست منبع

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

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);
     }