|
@@ -123,6 +123,17 @@ public class LoginController
|
|
|
loginInfoDTO.setDeviceModel(model);
|
|
|
}
|
|
|
}
|
|
|
+ else if ("TABLET".equals(deviceType))
|
|
|
+ {
|
|
|
+ Pattern pattern = Pattern.compile(";\\s?(\\S*?\\s?\\S*?)\\s?(Build)?/");
|
|
|
+ Matcher matcher = pattern.matcher(userAgentStr);
|
|
|
+ String model = null;
|
|
|
+ if (matcher.find())
|
|
|
+ {
|
|
|
+ model = matcher.group(1).trim();
|
|
|
+ loginInfoDTO.setDeviceModel(model);
|
|
|
+ }
|
|
|
+ }
|
|
|
else
|
|
|
{
|
|
|
loginInfoDTO.setDeviceModel(osName);
|
|
@@ -177,6 +188,17 @@ public class LoginController
|
|
|
loginInfoDTO.setDeviceModel(model);
|
|
|
}
|
|
|
}
|
|
|
+ else if ("TABLET".equals(deviceType))
|
|
|
+ {
|
|
|
+ Pattern pattern = Pattern.compile(";\\s?(\\S*?\\s?\\S*?)\\s?(Build)?/");
|
|
|
+ Matcher matcher = pattern.matcher(userAgentStr);
|
|
|
+ String model = null;
|
|
|
+ if (matcher.find())
|
|
|
+ {
|
|
|
+ model = matcher.group(1).trim();
|
|
|
+ loginInfoDTO.setDeviceModel(model);
|
|
|
+ }
|
|
|
+ }
|
|
|
else
|
|
|
{
|
|
|
loginInfoDTO.setDeviceModel(osName);
|