This commit is contained in:
jiangyong27 2025-04-09 14:14:13 +08:00
parent 81fe822a25
commit 49abc2e6c9
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ type StaffPayReq struct {
StaffId string `json:"staff_id"` StaffId string `json:"staff_id"`
PayType string `json:"pay_type"` PayType string `json:"pay_type"`
Title string `json:"title"` Title string `json:"title"`
Amount int64 `json:"amount"` Amount string `json:"amount"`
} }
type StaffUpdateReq struct { type StaffUpdateReq struct {

View File

@ -211,7 +211,7 @@ func (s *StaffUser) Pay(sess *session.AdminSession, req *api.StaffPayReq) {
if req.Title == "" { if req.Title == "" {
req.Title = "测试" req.Title = "测试"
} }
if err = CommonService.NewPay().Pay(corp, user, req.Title, req.PayType, cast.ToInt64(req.Amount), ""); err != nil { if err = CommonService.NewPay().Pay(corp, user, req.Title, req.PayType, int64(cast.ToFloat64(req.Amount)*100), ""); err != nil {
panic(config.ErrInternal.New().Append(err)) panic(config.ErrInternal.New().Append(err))
} }
} }