wangchuanjin 5 жил өмнө
parent
commit
8bd6adb61b

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

@@ -13,7 +13,7 @@ var IosReg = regexp.MustCompile(`\(i[^;]+;( U;)? CPU.+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")) {
+	if !IosReg.MatchString(a.Header("User-Agent")) && !IosIpadReg.MatchString(a.Header("User-Agent")) {
 		return false, false, false, false
 	}
 	iosExam, _ := Seoconfig["IosExam"].(map[string]interface{})