mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-13 12:18:50 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
e6d79c1760
commit
869849ce1b
3 changed files with 27 additions and 15 deletions
|
|
@ -394,8 +394,13 @@ func uploadCloud(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
ignorePushMsg := false
|
||||
if nil != arg["ignorePushMsg"] {
|
||||
ignorePushMsg = arg["ignorePushMsg"].(bool)
|
||||
}
|
||||
|
||||
id := arg["id"].(string)
|
||||
count, err := model.UploadAssets2Cloud(id)
|
||||
count, err := model.UploadAssets2Cloud(id, ignorePushMsg)
|
||||
if err != nil {
|
||||
ret.Code = -1
|
||||
ret.Msg = err.Error()
|
||||
|
|
@ -427,7 +432,12 @@ func uploadCloudByAssetsPaths(c *gin.Context) {
|
|||
assets = append(assets, pathArg.(string))
|
||||
}
|
||||
|
||||
count, err := model.UploadAssets2CloudByAssetsPaths(assets)
|
||||
ignorePushMsg := false
|
||||
if nil != arg["ignorePushMsg"] {
|
||||
ignorePushMsg = arg["ignorePushMsg"].(bool)
|
||||
}
|
||||
|
||||
count, err := model.UploadAssets2CloudByAssetsPaths(assets, ignorePushMsg)
|
||||
if err != nil {
|
||||
ret.Code = -1
|
||||
ret.Msg = err.Error()
|
||||
|
|
@ -435,11 +445,6 @@ func uploadCloudByAssetsPaths(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
ignorePushMsg := false
|
||||
if nil != arg["ignorePushMsg"] {
|
||||
ignorePushMsg = arg["ignorePushMsg"].(bool)
|
||||
}
|
||||
|
||||
if !ignorePushMsg {
|
||||
util.PushMsg(fmt.Sprintf(model.Conf.Language(41), count), 3000)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue