mirror of
https://github.com/v2board/v2board.git
synced 2025-06-13 21:28:27 +08:00
update
This commit is contained in:
@ -26,7 +26,7 @@ class CouponController extends Controller
|
|||||||
'limit_use'
|
'limit_use'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$params['code'] = Helper::guid();
|
$params['code'] = Helper::randomChar(8);
|
||||||
if (!Coupon::create($params)) {
|
if (!Coupon::create($params)) {
|
||||||
abort(500, '创建失败');
|
abort(500, '创建失败');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user