fix: publish issues

This commit is contained in:
Rogee
2024-09-05 17:33:07 +08:00
parent f849bbcef0
commit 81c60f2e9d
2 changed files with 9 additions and 1 deletions

View File

@@ -60,6 +60,10 @@ func Post(pd PostData) error {
return errors.New("post memo failed, body: " + resp.String())
}
if len(pd.Resources) == 0 {
return nil
}
type Resources struct {
Resources []Resource `json:"resources"`
}