This commit is contained in:
jiangyong27 2025-03-27 17:53:16 +08:00
parent 2644ad9c57
commit 901f1dc4da
1 changed files with 2 additions and 0 deletions

View File

@ -201,6 +201,8 @@ func (s *StaffUser) Pay(sess *session.AdminSession, req *api.StaffPayReq) {
user, err := dao.NewStaffUserDao().Get(cast.ToInt64(req.StaffId))
session.CheckDBError(err)
session.CheckNilError(user, "用户不存在")
log.Errorf("pay user[%s] amount[%s]", user.Username, goutil.FormatMoney(cast.ToInt64(req.Amount)))
return
NewPay().Pay(corp, user, req.Title, req.PayType, cast.ToInt64(req.Amount))
}