Browse Source

feat:sword春节活动短地址调整

fuwencai 6 months ago
parent
commit
98a54d4030
1 changed files with 9 additions and 0 deletions
  1. 9 0
      src/jfw/active/active.go

+ 9 - 0
src/jfw/active/active.go

@@ -73,6 +73,15 @@ func (a *Active) TransitRoute(key string) error {
 			if !bm { //如果电脑端 访问电脑端
 				return a.Redirect("/active/transit/day01")
 			}
+		case "day04": //PC
+			if bm { //如果是移动端 访问移动端
+				return a.Redirect("/active/transit/day06")
+			}
+		case "day06": //WX
+			if !bm { //如果电脑端 访问电脑端
+				return a.Redirect("/active/transit/day04")
+			}
+
 		}
 		shortUrls := public.Mysql.SelectBySql(`SELECT * FROM short_url WHERE mold = 1 AND code = ?`, key)
 		if shortUrls != nil && len(*shortUrls) > 0 {