siteurl, adminUsername config in configService
This commit is contained in:
1 parent
954c4e5e95
commit
6555384e5c
16 files changed
+118
-98
No files matched your search
@@ -316,7 +316,7 @@ func (c File) UploadImage(renderHtml string) revel.Result {
|
||||
|
||||
re := c.uploadImage("", "");
|
||||
|
||||
c.RenderArgs["fileUrlPath"] = siteUrl + re.Id
|
||||
c.RenderArgs["fileUrlPath"] = configService.GetSiteUrl() + re.Id
|
||||
c.RenderArgs["resultCode"] = re.Code
|
||||
c.RenderArgs["resultMsg"] = re.Msg
|
||||
|
||||
@@ -327,4 +327,4 @@ func (c File) UploadImage(renderHtml string) revel.Result {
|
||||
func (c File) UploadImageJson(from, noteId string) revel.Result {
|
||||
re := c.uploadImage(from, "");
|
||||
return c.RenderJson(re)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user