浏览代码

update

master
shenjiachi 1 个月前
父节点
当前提交
5e94dd7c5c
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      app/hdl/institutional_management/public_platoon/hdl_basic.go

+ 4
- 0
app/hdl/institutional_management/public_platoon/hdl_basic.go 查看文件

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


正在加载...
取消
保存