This commit is contained in:
jiangyong27 2025-03-27 20:37:05 +08:00
parent ba3411ba43
commit 096b29f2a3
1 changed files with 3 additions and 1 deletions

View File

@ -197,7 +197,9 @@ 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, "用户不存在")
if req.Title == "" {
req.Title = "测试"
}
NewPay().Pay(corp, user, req.Title, req.PayType, cast.ToInt64(req.Amount))
}