...
|
...
|
@@ -63,7 +63,7 @@ class Gift extends Backend |
|
|
$this->model->validateFailException(true)->validate($validate);
|
|
|
}
|
|
|
$Arrat = Db::name('gift')->select();
|
|
|
if (count($Arrat) > 6) {
|
|
|
if (count($Arrat) > 5) {
|
|
|
$this->error('礼物设置最大数为6');
|
|
|
}
|
|
|
$result = $this->model->allowField(true)->save($params);
|
...
|
...
|
|