|
|
@@ -53,8 +53,10 @@ func TurnChain(eg *xorm.Engine, officialEg, zhimengEg *xorm.Engine, args map[str |
|
|
|
if reqCount == "" { |
|
|
|
return tcPrase |
|
|
|
} |
|
|
|
hasHttp := 1 |
|
|
|
if strings.Contains(reqCount, "http") == false { |
|
|
|
reqCount = strings.ReplaceAll(reqCount, "p.pinduoduo.com", "https://p.pinduoduo.com") |
|
|
|
hasHttp = 0 |
|
|
|
} |
|
|
|
reqCount = strings.ReplaceAll(reqCount, "\n¥", "¥") |
|
|
|
reqCount = strings.ReplaceAll(reqCount, "http", "\nhttp") |
|
|
@@ -363,10 +365,13 @@ func TurnChain(eg *xorm.Engine, officialEg, zhimengEg *xorm.Engine, args map[str |
|
|
|
tcPrase.Count = strings.ReplaceAll(tcPrase.Count, "/ /", "/") |
|
|
|
tcPrase.Count = strings.ReplaceAll(tcPrase.Count, "/ / ", "/") |
|
|
|
tcPrase.Count = strings.ReplaceAll(tcPrase.Count, "/ /", "/") |
|
|
|
tcPrase.Count = strings.ReplaceAll(tcPrase.Count, "://", "-") |
|
|
|
tcPrase.Count = strings.ReplaceAll(tcPrase.Count, "//", "/") |
|
|
|
tcPrase.Count = strings.ReplaceAll(tcPrase.Count, "-", "://") |
|
|
|
|
|
|
|
tcPrase.Count = strings.ReplaceAll(tcPrase.Count, "://", "xxx") |
|
|
|
tcPrase.Count = strings.ReplaceAll(tcPrase.Count, "//", "/") |
|
|
|
tcPrase.Count = strings.ReplaceAll(tcPrase.Count, "xxx", "://") |
|
|
|
if hasHttp == 0 { |
|
|
|
tcPrase.Count = strings.ReplaceAll(tcPrase.Count, "https://", "") |
|
|
|
} |
|
|
|
fmt.Println("============30", time.Since(now)) |
|
|
|
|
|
|
|
} else if matched != nil && len(matched) > 0 { |
|
|
|