Commit 6ebe6ace authored by chenhan wang's avatar chenhan wang
Browse files

本地调试3.2

parent 2d4ac847
......@@ -71,7 +71,7 @@ func GetFileContentType(fileType string) string {
case ".md":
StrRet = "text/x-markdown"
default:
StrRet = fileType
StrRet = "text/plain"
}
return StrRet
}
......
......@@ -21,7 +21,7 @@ func InitWebFramework() {
}
func StartServer() {
e.Logger.Fatal(e.Start(controller.GetSetting("url"))) // 启动服务,注意默认端口80不能省略
e.Logger.Fatal(e.Start(controller.GetSetting("testurl"))) // 启动服务,注意默认端口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")) // 启动服务,注意默认端口80不能省略,需要域名解析,config
}
......
......@@ -24,8 +24,8 @@ type Response2 struct {
type Response3 struct {
Code int `json:"code"`
Msg string `json:"msg"`
Name string `json:"fileName"`
Type string `json:"fileType"`
Name string `json:"name"`
Type string `json:"type"`
Data interface{} `json:"data"`
}
......
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