diff --git a/server/service/staff_salary.go b/server/service/staff_salary.go index 967fbf2..4ba1f43 100644 --- a/server/service/staff_salary.go +++ b/server/service/staff_salary.go @@ -11,7 +11,6 @@ import ( "fmt" "github.com/gin-gonic/gin" log "github.com/sirupsen/logrus" - "github.com/smbrave/goutil" "github.com/spf13/cast" excelize "github.com/xuri/excelize/v2" "os" @@ -143,12 +142,10 @@ func (s *StaffSalary) Pay(sess *session.AdminSession, req *api.PaySalaryReq) { title := fmt.Sprintf("%s工资", salary.Month) - log.Errorf("title[%s] stalary:%s req:%s", title, goutil.EncodeJSON(salary), goutil.EncodeJSON(req)) salary.Status = model.StaffSalaryStatusPayed dao.NewStaffSalaryDao().Update(salary) - return - //NewPay().Pay(corp, user, title, req.PayType, int64(salary.GetRealSalary()*100)) + NewPay().Pay(corp, user, title, req.PayType, int64(salary.GetRealSalary()*100)) } func (s *StaffSalary) Agent(cid int64, month string, ctx *gin.Context) {