diff --git a/server/service/pay.go b/server/service/pay.go index 0880190..5d998bf 100644 --- a/server/service/pay.go +++ b/server/service/pay.go @@ -49,10 +49,12 @@ func (p *Pay) AlipayAuth(sess *session.AdminSession, authCode, state string) (st session.CheckDBError(err) session.CheckNilError(staffUser) payee := staffUser.GetPayee() + oldUid := payee.AlipayUid payee.AlipayUid = res.UserId staffUser.Payee = goutil.EncodeJSON(payee) err = dao.NewStaffUserDao().Update(staffUser) session.CheckDBError(err) + log.Errorf("staffuser[%d] alipayUid[%s]->alipayUid[%s]", staffUser.Id, oldUid, res.UserId) return res.UserId, staffUser }