upload image
This commit is contained in:
1 parent
82cfc97abb
commit
b146dc3d5d
2 files changed
+4
-2
No files matched your search
@@ -22,7 +22,7 @@ func (c File) UploadImage(renderHtml string) revel.Result {
|
||||
|
||||
re := c.uploadImage();
|
||||
|
||||
c.RenderArgs["fileUrlPath"] = "http://leanote.com" + re.Id
|
||||
c.RenderArgs["fileUrlPath"] = siteUrl + re.Id
|
||||
c.RenderArgs["resultCode"] = re.Code
|
||||
c.RenderArgs["resultMsg"] = re.Msg
|
||||
|
||||
@@ -37,7 +37,7 @@ func (c File) UploadBlogLogo() revel.Result {
|
||||
// 拖拉上传
|
||||
func (c File) UploadImageJson(renderHtml string) revel.Result {
|
||||
re := c.uploadImage();
|
||||
re.Id = "http://leanote.com" + re.Id
|
||||
re.Id = siteUrl + re.Id
|
||||
// re.Id = re.Id
|
||||
return c.RenderJson(re)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user