diff --git a/qyweixin/app_hr.go b/qyweixin/app_hr.go index 0ecf2df..c49744b 100644 --- a/qyweixin/app_hr.go +++ b/qyweixin/app_hr.go @@ -69,6 +69,7 @@ func (h *AppHr) GetStaffInfo(userId string) (*StaffInfo, error) { log.Errorf("GetUserInfo error:%s", err.Error()) return nil, err } + staff.Extra = make(map[string]string) for k, v := range fieldMap { staff.Extra[k] = h.getFieldValue(v) }