...
|
...
|
@@ -72,7 +72,7 @@ class Coupons extends Api |
|
|
$receive = Common::selectWhereData('rcoupon',['uid'=>$this->uid],'id,c_id');
|
|
|
$receive_s = array_column($receive,'c_id');
|
|
|
$limit = config('verify.goods_limit');
|
|
|
$data = Common::selectWherePageData('coupon',$where,'id,type,coupon_name,c_type,coupon_type,full_reduce,reduce,discount,coupon_number',$page,$limit,'c_type asc,coupon_type desc');
|
|
|
$data = Common::selectWherePageData('coupon',$where,'id,type,coupon_name,c_type,coupon_type,full_reduce,reduce,discount,coupon_number',$page,$limit,'sort desc,id desc');
|
|
|
$res = [];
|
|
|
$arr = [];
|
|
|
foreach($data as $key=>$value){
|
...
|
...
|
@@ -185,7 +185,7 @@ class Coupons extends Api |
|
|
//查询已经领取过
|
|
|
$receive = Common::selectWhereData('rcoupon',['uid'=>$this->uid],'id,c_id');
|
|
|
$receive_s = array_column($receive,'c_id');
|
|
|
$data = Common::selectWhereData('coupon',$where,'id,c_type,coupon_type,full_reduce,reduce,discount,coupon_number','c_type asc,coupon_type desc');
|
|
|
$data = Common::selectWhereData('coupon',$where,'id,c_type,coupon_type,full_reduce,reduce,discount,coupon_number','sort desc,id desc');
|
|
|
$res = [];
|
|
|
foreach($data as $key=>$value){
|
|
|
$res[$key]['id'] = $value['id'];
|
...
|
...
|
@@ -284,7 +284,7 @@ class Coupons extends Api |
|
|
$receive = Common::selectWhereData('rcoupon',['uid'=>$this->uid],'id,c_id');
|
|
|
$receive_s = array_column($receive,'c_id');
|
|
|
|
|
|
$data = Common::selectWhereData('coupon',$where,'id,type,coupon_name,c_type,coupon_type,full_reduce,reduce,discount,coupon_number','c_type asc,coupon_type desc');
|
|
|
$data = Common::selectWhereData('coupon',$where,'id,type,coupon_name,c_type,coupon_type,full_reduce,reduce,discount,coupon_number','sort desc,id desc');
|
|
|
$res = [];
|
|
|
|
|
|
foreach($data as $key=>$value){
|
...
|
...
|
|