lijian 6 vuotta sitten
vanhempi
commit
c3b95ba9bb
2 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 3 3
      publish.sh
  2. 1 1
      services/fileaccess/file.go

+ 3 - 3
publish.sh

@@ -2,8 +2,8 @@ git add .
 git commit -m '提交测试'
 git push
 
-ssh root@192.168.175.60 -p kaiwu123
+#ssh root@192.168.175.60 -p kaiwu123
 
-git pull
+#git pull
 
-./install.sh
+#./install.sh

+ 1 - 1
services/fileaccess/file.go

@@ -56,7 +56,7 @@ func registerRouter(app *iris.Application) {
 			if *conDomain == "" {
 				fileURL = "http://" + server.GetHTTPHost() + "/upload/tmp/" + newname
 			} else {
-				fileURL = *conDomain
+				fileURL = "http://" + *conDomain + "/upload/tmp/" + newname
 			}
 			ctx.JSON(map[string]interface{}{
 				"code":    0,