shenjiachi 1 mese fa
parent
commit
5e94dd7c5c
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. +4
    -0
      app/hdl/institutional_management/public_platoon/hdl_basic.go

+ 4
- 0
app/hdl/institutional_management/public_platoon/hdl_basic.go Vedi File

@@ -1,6 +1,7 @@
package public_platoon

import (
"applet/app/cfg"
"applet/app/db"
"applet/app/e"
md "applet/app/md/institutional_management/public_platoon"
@@ -8,6 +9,7 @@ import (
"applet/app/utils"
"code.fnuoos.com/EggPlanet/egg_models.git/src/implement"
"code.fnuoos.com/EggPlanet/egg_models.git/src/model"
rule "code.fnuoos.com/EggPlanet/egg_system_rules.git"
ruleSvc "code.fnuoos.com/EggPlanet/egg_system_rules.git/rule/egg_energy"
"errors"
"github.com/gin-gonic/gin"
@@ -656,6 +658,8 @@ func AddCommunityDividends(c *gin.Context) {
e.OutErr(c, e.ERR_DB_ORM, err1.Error())
return
}

rule.Init(cfg.RedisAddr)
err2 := ruleSvc.AddCommunityDividends(db.Db, req.Amount, req.Name, *basic)
if err2 != nil {
e.OutErr(c, e.ERR_DB_ORM, err2.Error())


Caricamento…
Annulla
Salva