mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 22:10:49 +00:00
添加直播间时候的名称验证
This commit is contained in:
parent
10a6210873
commit
2e6f3b45a4
@ -78,6 +78,9 @@ class LiveRoom extends AuthController
|
||||
['replay_status', 1],
|
||||
['sort', 0]
|
||||
]);
|
||||
if (mb_strlen($data['name']) < 6 || mb_strlen($data['name']) > 17) {
|
||||
return app('json')->fail(500030);
|
||||
}
|
||||
$this->validate($data, \app\adminapi\validate\marketing\LiveRoomValidate::class, 'save');
|
||||
$this->services->add($data);
|
||||
return app('json')->success(100000);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user