Finish the UI of share.

This commit is contained in:
zicla
2019-04-30 03:35:18 +08:00
parent d75c4a222e
commit cfd32089ff
6 changed files with 113 additions and 28 deletions

View File

@ -50,6 +50,11 @@ func (this *MatterController) Init() {
this.shareDao = b
}
b = core.CONTEXT.GetBean(this.bridgeDao)
if b, ok := b.(*BridgeDao); ok {
this.bridgeDao = b
}
b = core.CONTEXT.GetBean(this.imageCacheService)
if b, ok := b.(*ImageCacheService); ok {
this.imageCacheService = b
@ -132,7 +137,7 @@ func (this *MatterController) Page(writer http.ResponseWriter, request *http.Req
panic(result.BadRequest("puuid必填"))
}
dirMatter := this.matterDao.CheckByUuid(puuid)
if dirMatter.Dir {
if !dirMatter.Dir {
panic(result.BadRequest("puuid 对应的不是文件夹"))
}