mirror of
https://github.com/v2board/v2board.git
synced 2024-11-13 11:09:11 +08:00
coupon: fix undefined index
This commit is contained in:
parent
137b018aad
commit
f204dd2d72
@ -28,7 +28,7 @@ class CouponController extends Controller
|
||||
$params['limit_plan_ids'] = json_encode($params['limit_plan_ids']);
|
||||
}
|
||||
if (!$request->input('id')) {
|
||||
if (!$params['code']) {
|
||||
if (!isset($params['code'])) {
|
||||
$params['code'] = Helper::randomChar(8);
|
||||
}
|
||||
if (!Coupon::create($params)) {
|
||||
|
Loading…
Reference in New Issue
Block a user