Browse Source

feat:处理地址问题

fuwencai 1 year ago
parent
commit
8fc11092e2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/jfw/modules/publicapply/src/userbase/entity/entity.go

+ 1 - 1
src/jfw/modules/publicapply/src/userbase/entity/entity.go

@@ -739,7 +739,7 @@ func Convert2https(url string) string {
 	}
 	for i := 0; i < len(initjson.OriginalC.ConvertSite); i++ {
 		if strings.HasPrefix(url, initjson.OriginalC.ConvertSite[i]) {
-			url = strings.ReplaceAll(url, "http://", "https://")
+			url = strings.Replace(url, "http://", "https://", 1)
 			break
 		}
 	}