|
@@ -542,7 +542,7 @@ func AddCommunityDividends(c *gin.Context) { |
|
|
e.OutErr(c, e.ERR_DB_ORM, err1.Error()) |
|
|
e.OutErr(c, e.ERR_DB_ORM, err1.Error()) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
err2 := ruleSvc.AddCommunityDividends(db.Db, req.Nums, req.Name, *basic) |
|
|
|
|
|
|
|
|
err2 := ruleSvc.AddCommunityDividends(db.Db, req.Amount, req.Name, *basic) |
|
|
if err2 != nil { |
|
|
if err2 != nil { |
|
|
e.OutErr(c, e.ERR_DB_ORM, err2.Error()) |
|
|
e.OutErr(c, e.ERR_DB_ORM, err2.Error()) |
|
|
return |
|
|
return |
|
|