diff --git a/conf/corp/1002.json b/conf/corp/1002.json index e528339..3939728 100644 --- a/conf/corp/1002.json +++ b/conf/corp/1002.json @@ -12,10 +12,6 @@ { "name": "公积金扣除", "key": "house_deduct" - }, - { - "name": "绩效目标", - "key": "perft_target" } ] } diff --git a/server/service/staff_user.go b/server/service/staff_user.go index 713ca38..ae286ea 100644 --- a/server/service/staff_user.go +++ b/server/service/staff_user.go @@ -172,6 +172,9 @@ func (s *StaffUser) Update(sess *session.AdminSession, req *api.StaffUpdateReq) if len(req.Config) != 0 { var cfg map[string]interface{} json.Unmarshal([]byte(staffUser.Config), &cfg) + if cfg == nil { + cfg = make(map[string]interface{}) + } for k, v := range req.Config { cfg[k] = v }