Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-01-05 11:21:07 +08:00
parent e6d79c1760
commit 869849ce1b
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 27 additions and 15 deletions

View file

@ -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)
}