|
@@ -13,7 +13,7 @@ var IosReg = regexp.MustCompile(`\(i[^;]+;( U;)? CPU.+Mac OS X`)
|
|
var IosIpadReg = regexp.MustCompile(`\(M[^;]+; 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) {
|
|
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
|
|
return false, false, false, false
|
|
}
|
|
}
|
|
iosExam, _ := Seoconfig["IosExam"].(map[string]interface{})
|
|
iosExam, _ := Seoconfig["IosExam"].(map[string]interface{})
|