Browse Source

活动 增加校验

master
parent
commit
901c91ae49
  1. 5
      app/CouponRebate/CouponRebate.php

5
app/CouponRebate/CouponRebate.php

@ -26,10 +26,15 @@ class CouponRebate implements CouponRebateInterface
public function getActiveInfo()
{
$time = time();
$res = Db::table('ims_system_coupon_user')
->where([
['status','=',1],
['active_type','=',2],
['start_time','<=',$time],
['end_time','>',$time],
])
->whereRaw('inventory > inventory_use')
->get();
return $res;
}

Loading…
Cancel
Save