alipayuidlog

This commit is contained in:
jiangyong 2025-03-16 21:53:00 +08:00
parent 86955148c1
commit e110515255
1 changed files with 2 additions and 0 deletions

View File

@ -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
}