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