alipay uid

This commit is contained in:
jiangyong27 2024-09-27 11:31:27 +08:00
parent f5a3da2053
commit 9b91ba2935
3 changed files with 3 additions and 1 deletions

View File

@ -9,6 +9,7 @@ type StaffInfo struct {
Id int64
Username string
Realname string
AlipayUid string
StaffType string
Phone string
Idno string

2
go.mod
View File

@ -3,7 +3,7 @@ module enterprise
go 1.21.6
require (
git.u8t.cn/open/gosdk v0.0.0-20240807044703-ac33837a7820
git.u8t.cn/open/gosdk v0.0.0-20240927033033-8d021096f778
github.com/ArtisanCloud/PowerWeChat/v3 v3.2.27
github.com/bradfitz/gomemcache v0.0.0-20230905024940-24af94b03874
github.com/gin-gonic/gin v1.10.0

View File

@ -127,6 +127,7 @@ func (s *Staff) SyncStaffInfo() {
staff.BirthDate = staffInfo.BirthDate
staff.BankName = staffInfo.BankName
staff.BankCard = staffInfo.BankCard
staff.AlipayUid = staffInfo.AlipayUid
if staff.Id == 0 {
_, err = dao.NewStaffInfoDao().Create(staff)