|
@@ -316,19 +316,19 @@ class Eggnew extends Api
|
|
|
// 返回抽到的礼物列表
|
|
|
$result = [
|
|
|
'list' => [],
|
|
|
- 'bigshow' => [],
|
|
|
+// 'bigshow' => [],
|
|
|
'sumvalue' => Db::name('egg_do')->where('do_no',$do_no)->sum('price'),
|
|
|
];
|
|
|
|
|
|
- $list = Db::name('egg_do')->alias('do')->join('gift','do.gift_id = gift.id','LEFT')->field('do.gift_id,do.gift_name,do.image,do.special,do.price,count(do.id) as number,gift.is_big')->where('do.do_no',$do_no)->order('gift.is_big desc,gift.value desc')->group('do.gift_id')->select();
|
|
|
+ $list = Db::name('egg_do')->alias('do')->join('gift','do.gift_id = gift.id','LEFT')->field('do.gift_id,do.gift_name,do.image,do.special,do.price,count(do.id) as number')->where('do.do_no',$do_no)->order('gift.value desc')->group('do.gift_id')->select();
|
|
|
$list = list_domain_image($list,['image','special']);
|
|
|
$result['list'] = $list;
|
|
|
//只弹一个大礼物,专门拿出结构
|
|
|
- if(!empty($list)){
|
|
|
+ /*if(!empty($list)){
|
|
|
if($list[0]['is_big'] == 1){
|
|
|
$result['bigshow'] = $list[0];
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
$this->success("获取成功!",$result);
|
|
|
}
|
|
|
|
|
@@ -346,7 +346,7 @@ class Eggnew extends Api
|
|
|
->join("egg_jackpot jp","a.Jackpot_id = jp.id","left")
|
|
|
->where($where)
|
|
|
// ->group("a.user_id")
|
|
|
- ->order("a.money","desc")
|
|
|
+ ->order("a.price","desc")
|
|
|
->limit(20)
|
|
|
->select();
|
|
|
$this->success("获取成功!",$ranklist);
|
|
@@ -398,7 +398,7 @@ class Eggnew extends Api
|
|
|
|
|
|
// 构建数据
|
|
|
$data = [];
|
|
|
- $data["jewel"] = $this->auth->jewel;
|
|
|
+ $data["jewel"] = model('wallet')->getWallet($this->auth->id,'jewel');
|
|
|
$data["playdetail"] = config("site.playdetail");
|
|
|
|
|
|
$data['pay_config'] = Db::name('egg_timesprice')->field('times,price')->where('type',$type)->order('times asc')->select();
|