mirror of
https://github.com/v2board/v2board.git
synced 2025-02-10 23:49:12 +08:00
update
This commit is contained in:
parent
34e71ff049
commit
2eb594a4fa
@ -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, '创建失败');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user