修复:新人券查询时错误 导致非新人券也被赠送了
This commit is contained in:
parent
0ec20c500d
commit
684391f7e2
|
|
@ -85,7 +85,7 @@ class StoreCouponDao extends BaseDao
|
|||
{
|
||||
$query = StoreCoupon::getDB()
|
||||
->where('status', 1)
|
||||
->when(isset($where['send_type']) && $where['send_type'] !== '', function ($query) use ($send_type) {
|
||||
->when(!is_null($send_type), function ($query) use ($send_type) {
|
||||
$query->where('send_type', $send_type);
|
||||
})
|
||||
->where('is_del', 0)
|
||||
|
|
|
|||
Loading…
Reference in New Issue