feat : auto dispense coupon

This commit is contained in:
2025-03-19 16:33:07 +08:00
parent 44170132e7
commit 307c0ec930

View File

@@ -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('请选择指定值');
}
}