feat : dispense

This commit is contained in:
2025-03-12 14:33:53 +08:00
parent 3ca6ae890e
commit ad5c531517

View File

@@ -122,7 +122,7 @@ trait CouponDispenseTrait
->where('cycle_id',$this->cycleId) ->where('cycle_id',$this->cycleId)
->whereIn('site_id',$this->appointValue['site']) ->whereIn('site_id',$this->appointValue['site'])
->where('status',OrderCode::FINISH) ->where('status',OrderCode::FINISH)
->pluck('user_id','order_id') ->pluck('user_id','id')
->toArray(); ->toArray();
if (empty($orderIds)) throw new Exception('未找到该周期该地点的订单'); if (empty($orderIds)) throw new Exception('未找到该周期该地点的订单');