@@ -10,7 +10,7 @@ import (
)
var IosReg = regexp.MustCompile(`\(i[^;]+;( U;)? CPU.+Mac OS X`)
-var IosIpadReg = regexp.MustCompile(`\(i[^;]+;Intel Mac OS X`)
+var IosIpadReg = regexp.MustCompile(`\(M[^;]+; Intel Mac OS X`)
func IosExamInfo(a *xweb.Action, vip, ent bool) (bool, bool, bool, bool) {
if !IosReg.MatchString(a.Header("User-Agent")) {
@@ -1009,7 +1009,7 @@ function setLiActive(obj){
function mySysIsIos(){
//ios终端
var flag1 = !!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
- var flag2 = !!navigator.userAgent.match(/\(i[^;]+;Intel Mac OS X/);
+ var flag2 = !!navigator.userAgent.match(/\(M[^;]+; Intel Mac OS X/);
return flag1||flag2
}