This commit is contained in:
root 2020-01-01 02:25:49 +08:00
parent 34e71ff049
commit 2eb594a4fa

View File

@ -26,7 +26,7 @@ class CouponController extends Controller
'limit_use'
]);
$params['code'] = Helper::guid();
$params['code'] = Helper::randomChar(8);
if (!Coupon::create($params)) {
abort(500, '创建失败');
}