|
|
@ -65,8 +65,12 @@ class CouponController extends BaseController |
|
|
->orderBy('u.weigh','desc') |
|
|
->orderBy('u.weigh','desc') |
|
|
// ->orderByRaw('FIELD(u.id, '.implode(", " , $ids).')')
|
|
|
// ->orderByRaw('FIELD(u.id, '.implode(", " , $ids).')')
|
|
|
->limit(4) |
|
|
->limit(4) |
|
|
|
|
|
|
|
|
->get(); |
|
|
->get(); |
|
|
|
|
|
foreach ($c as $k => &$v){ |
|
|
|
|
|
if($v->discount_type == 2){ |
|
|
|
|
|
$v->discounts = floatval($v->discounts); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
return $this->success(['not_reveive'=>$c]); |
|
|
return $this->success(['not_reveive'=>$c]); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|