mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-03 23:20:26 +08:00
API节点自动生成实例代号,用来外界查询多个API节点实例是否为同一个
This commit is contained in:
@@ -677,6 +677,12 @@ func (this *APINode) listenSock() error {
|
||||
Params: map[string]interface{}{"count": 0},
|
||||
})
|
||||
}
|
||||
case "instance":
|
||||
_ = cmd.Reply(&gosock.Command{
|
||||
Params: map[string]interface{}{
|
||||
"code": teaconst.InstanceCode,
|
||||
},
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user