pay
This commit is contained in:
parent
81fe822a25
commit
49abc2e6c9
|
@ -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 {
|
||||||
|
|
|
@ -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))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue