mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Detect device model and OS version automatically
This commit is contained in:
parent
3abaee5e2b
commit
9bf62ea6d2
1 changed files with 5 additions and 2 deletions
|
|
@ -100,6 +100,11 @@ class memberController extends member
|
|||
|
||||
$browserInfo = Rhymix\Framework\UA::getBrowserInfo();
|
||||
$device_type = strtolower($browserInfo->os);
|
||||
$device_version = $browserInfo->os_version;
|
||||
if(!$device_model)
|
||||
{
|
||||
$device_model = escape($browserInfo->device);
|
||||
}
|
||||
|
||||
if('ios' === $device_type)
|
||||
{
|
||||
|
|
@ -120,8 +125,6 @@ class memberController extends member
|
|||
return new BaseObject(-1, 'NOT_SUPPORTED_OS');
|
||||
}
|
||||
|
||||
$device_version = $browserInfo->version;
|
||||
|
||||
$output = $this->procMemberLogin($user_id, $password);
|
||||
if(!$output->toBool())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue