From e00f16a8471f819fcd02e9de058fc75a5f86cd75 Mon Sep 17 00:00:00 2001 From: jiangyong27 Date: Mon, 17 Mar 2025 11:44:14 +0800 Subject: [PATCH] nil --- conf/corp/1002.json | 4 ---- server/service/staff_user.go | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) 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 }