|
@@ -62,7 +62,7 @@ class Index extends Api
|
|
|
//我拥有的
|
|
|
$user_coupon = Db::name('unishop_coupon_user')->where('user_id',$this->auth->id)->column('coupon_id');
|
|
|
//我没有的,可领取的
|
|
|
- $coupon = Db::name('unishop_coupon')->field('id,title,least,value')
|
|
|
+ $coupon = Db::name('unishop_coupon')->field('id,title,least,value,number')
|
|
|
->where('id','NOTIN',$user_coupon)
|
|
|
->where('deletetime',NULL)
|
|
|
->where('switch',1)
|