|
|
@@ -38,7 +38,11 @@ public class ShiroFilterUtils {
|
|
|
* @return
|
|
|
*/
|
|
|
public boolean isMobileDevice(HttpServletRequest request) {
|
|
|
- String[] deviceArray = new String[]{"android","blackBerry","windows phone","iphone","ipod","ipad"};
|
|
|
+// phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone
|
|
|
+ String[] deviceArray = new String[]{
|
|
|
+ "phone","pad","pod","iphone","ipod","ios","ipad","android","Mobile",
|
|
|
+ "BlackBerry","IEMobile","MQQBrowser","JUC","Fennec",
|
|
|
+ "wOSBrowser","BrowserNG","WebOS","Symbian","Windows Phone"};
|
|
|
if(request.getHeader("User-Agent") != null){
|
|
|
String agent = request.getHeader("User-Agent");
|
|
|
for(int i = 0; i<deviceArray.length; i++){
|
|
|
@@ -62,8 +66,6 @@ public class ShiroFilterUtils {
|
|
|
/**
|
|
|
* response 输出JSON
|
|
|
*
|
|
|
- * @param hresponse
|
|
|
- * @param resultMap
|
|
|
* @throws IOException
|
|
|
*/
|
|
|
public void out(HttpServletResponse response, Result res) {
|