diff --git a/server/service/staff_user.go b/server/service/staff_user.go index 4071d82..daa26cc 100644 --- a/server/service/staff_user.go +++ b/server/service/staff_user.go @@ -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)) }