feat : dispense
This commit is contained in:
@@ -97,7 +97,7 @@ trait CouponDispenseTrait
|
||||
$orderIds = $this->orderModel
|
||||
->where('cycle_id',$this->cycleId)
|
||||
->where('status',OrderCode::FINISH)
|
||||
->pluck('user_id','order_id')
|
||||
->pluck('user_id','id')
|
||||
->toArray();
|
||||
|
||||
if (empty($orderIds)) throw new Exception('未找到该周期的订单');
|
||||
|
||||
Reference in New Issue
Block a user