wangchuanjin 5 жил өмнө
parent
commit
0087bfe125

+ 1 - 0
src/jfw/modules/app/src/app/jyutil/util.go

@@ -10,6 +10,7 @@ import (
 )
 )
 
 
 var IosReg = regexp.MustCompile(`\(i[^;]+;( U;)? CPU.+Mac OS X`)
 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) {
 func IosExamInfo(a *xweb.Action, vip, ent bool) (bool, bool, bool, bool) {
 	if !IosReg.MatchString(a.Header("User-Agent")) {
 	if !IosReg.MatchString(a.Header("User-Agent")) {

+ 5 - 1
src/jfw/modules/app/src/web/staticres/jyapp/js/common.js

@@ -999,7 +999,11 @@ function setLiActive(obj){
 	},500);
 	},500);
 }
 }
 function mySysIsIos(){
 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){
 function appQuit(isKicked){
 	//清除小红点缓存
 	//清除小红点缓存