mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 10:11:38 +09:00
device_token 패턴 체크할 때 not 연산자 추가
This commit is contained in:
parent
b986f826ba
commit
b633589edf
1 changed files with 2 additions and 2 deletions
|
|
@ -103,14 +103,14 @@ class memberController extends member
|
|||
|
||||
if('ios' === $device_type)
|
||||
{
|
||||
if(preg_match("/^[0-9a-z]{64}$/", $device_token))
|
||||
if(!preg_match("/^[0-9a-z]{64}$/", $device_token))
|
||||
{
|
||||
return new BaseObject(-1, 'INVALID_DEVICE_TOKEN');
|
||||
}
|
||||
}
|
||||
else if('android' === $device_type)
|
||||
{
|
||||
if(preg_match("/^[0-9a-zA-Z:_-]+$/", $device_token))
|
||||
if(!preg_match("/^[0-9a-zA-Z:_-]+$/", $device_token))
|
||||
{
|
||||
return new BaseObject(-1, 'INVALID_DEVICE_TOKEN');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue