This commit is contained in:
hujiabin 2022-10-14 19:27:23 +08:00
parent 3a02badc59
commit 7c68b4a6bc

View File

@ -180,6 +180,12 @@ class BagController extends BaseAuthedController {
$errMsg = 'Parameter error name length must not be greater than 16';
return;
}
if(!preg_match("/^[a-z\d]*$/i",$name))
{
$errCode = 5;
$errMsg = 'Excuse me , the name you entered is in the wrong format.';
return;
}
$nameService = new services\NameService();
if (!$nameService->verifyNameSign($name, $nameSign)){
$errCode = 5;