增加发券规则
This commit is contained in:
@@ -204,7 +204,7 @@ class IndexController extends AdminController
|
||||
if ($request->total < 0) {
|
||||
$error = new MessageBag([
|
||||
'title' => '错误',
|
||||
'message' => '可发券总数必须大于0',
|
||||
'message' => '可发券总数必须大于0.',
|
||||
]);
|
||||
|
||||
return back()->withInput()->with(compact('error'));
|
||||
|
||||
@@ -100,7 +100,7 @@ class Activity extends Model
|
||||
{
|
||||
|
||||
try {
|
||||
$code = 'YSD' . date('ymd') . mt_rand(100000, 999999);
|
||||
$code = '66406' . date('ymd') . mt_rand(100000, 999999);
|
||||
|
||||
if ($this->type == SELF::TYPE_EXTEND) {
|
||||
$start_at = now();
|
||||
|
||||
Reference in New Issue
Block a user