🎨 Official data sync counts the number of cloud storage API calls https://github.com/siyuan-note/siyuan/issues/8048

This commit is contained in:
Liang Ding 2023-04-20 10:30:31 +08:00
parent 9a975b6cc7
commit 78a5c05d28
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
4 changed files with 12 additions and 2 deletions

View file

@ -83,7 +83,7 @@ func getCloudSpace(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)
sync, backup, hSize, hAssetSize, hTotalSize, exchangeSize, hTrafficUploadSize, hTrafficDownloadSize, err := model.GetCloudSpace()
sync, backup, hSize, hAssetSize, hTotalSize, exchangeSize, hTrafficUploadSize, hTrafficDownloadSize, htrafficAPIGet, hTrafficAPIPut, err := model.GetCloudSpace()
if nil != err {
ret.Code = 1
ret.Msg = err.Error()
@ -100,6 +100,8 @@ func getCloudSpace(c *gin.Context) {
"hExchangeSize": exchangeSize,
"hTrafficUploadSize": hTrafficUploadSize,
"hTrafficDownloadSize": hTrafficDownloadSize,
"hTrafficAPIGet": htrafficAPIGet,
"hTrafficAPIPut": hTrafficAPIPut,
}
}