feat : auto dispense coupon
This commit is contained in:
@@ -210,6 +210,8 @@ trait CouponDispenseTrait
|
||||
*/
|
||||
protected function checkAppointValue(): void
|
||||
{
|
||||
if ($this->claimRule != CouponCode::DISPENSE_CLAIM_RULE_POST_ACCOUNT) throw new Exception('该分发场景只能选择直发账户');
|
||||
|
||||
if (empty($this->request->input('appoint_value'))) throw new Exception('请选择指定值');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user