Commit 69e59d57 authored by chenhan wang's avatar chenhan wang
Browse files

本地调试2.5

parent 6c660a49
...@@ -14,7 +14,7 @@ import ( ...@@ -14,7 +14,7 @@ import (
type File struct { type File struct {
FileName string `json:"fileName" form:"fileName" query:"fileName"` FileName string `json:"fileName" form:"fileName" query:"fileName"`
FileType string `json:"fileType" form:"fileType" query:"fileName"` FileType string `json:"fileType" form:"fileType" query:"fileType"`
Expiration int `json:"expiration" form:"expiration" query:"expiration"` Expiration int `json:"expiration" form:"expiration" query:"expiration"`
User string `json:"user" form:"user" query:"user"` User string `json:"user" form:"user" query:"user"`
Passwd string `json:"passwd" form:"passwd" query:"passwd"` Passwd string `json:"passwd" form:"passwd" query:"passwd"`
......
...@@ -21,9 +21,9 @@ func InitWebFramework() { ...@@ -21,9 +21,9 @@ func InitWebFramework() {
} }
func StartServer() { func StartServer() {
e.Logger.Fatal(e.Start(controller.GetSetting("testurl"))) // 启动服务,注意默认端口80不能省略 e.Logger.Fatal(e.Start(controller.GetSetting("url"))) // 启动服务,注意默认端口80不能省略
//e.Logger.Fatal(e.Start("127.0.0.1:80")) // 启动服务,注意默认端口80不能省略 //e.Logger.Fatal(e.Start("127.0.0.1:80")) // 启动服务,注意默认端口80不能省略
//e.Logger.Fatal(e.Start("http://xlab.zju.edu.cn/test/pastebin/group-1")) // 启动服务,注意默认端口80不能省略,需要域名解析,config //e.Logger.Fatal(e.Start("http://xlab.zju.edu.cn/test/pastebin/group-1:80")) // 启动服务,注意默认端口80不能省略,需要域名解析,config
} }
/* /*
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment