Skip to content

Commit eec6f32

Browse files
committed
修复自定义变量设置失败导致所有配置无法加载的问题
1 parent 8a8927c commit eec6f32

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

process-worker/event.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ func (ws *WorkerServer) setEvent(namespace string, key string, data []byte) (err
7474
return err
7575
}
7676
case eosc.NamespaceCustomer:
77+
if len(data) == 0 {
78+
ws.customerVar.Set(key, nil)
79+
return nil
80+
}
7781
var value map[string]string
7882
err := json.Unmarshal(data, &value)
7983
if err != nil {

0 commit comments

Comments
 (0)