From dba365ff16b32fa248fa3403ab6706fef0830fff Mon Sep 17 00:00:00 2001 From: jiangyong27 Date: Thu, 27 Mar 2025 20:54:09 +0800 Subject: [PATCH] plog --- server/service/pay.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/service/pay.go b/server/service/pay.go index 500bc7a..c2c3a19 100644 --- a/server/service/pay.go +++ b/server/service/pay.go @@ -85,6 +85,13 @@ func (p *Pay) Pay(corp *model.Corp, user *model.StaffUser, title, payType string panic(config.ErrInternal.New().Append(err)) } + plog := new(model.StaffPayLog) + plog.Title = title + plog.PayType = realPayType + plog.StaffId = user.Id + plog.Amount = amount + dao.NewStaffPayLogDao().Create(plog) + global.SendMessage([]string{"jiangyong"}, strings.Join(message, "\n")) }