pay2
This commit is contained in:
parent
2644ad9c57
commit
901f1dc4da
|
@ -201,6 +201,8 @@ func (s *StaffUser) Pay(sess *session.AdminSession, req *api.StaffPayReq) {
|
||||||
user, err := dao.NewStaffUserDao().Get(cast.ToInt64(req.StaffId))
|
user, err := dao.NewStaffUserDao().Get(cast.ToInt64(req.StaffId))
|
||||||
session.CheckDBError(err)
|
session.CheckDBError(err)
|
||||||
session.CheckNilError(user, "用户不存在")
|
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))
|
NewPay().Pay(corp, user, req.Title, req.PayType, cast.ToInt64(req.Amount))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue