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