Browse Source

Merge branch 'new_dev' of https://github.com/deepcloud2048/deep_voice into 重写ble

newdev_shunjiawei
liwei1dao 1 year ago
parent
commit
9f17d3b2d8
  1. 3
      local_plugins/chat_api/ios/chat_api/Sources/chat_api/MCPClient.swift

3
local_plugins/chat_api/ios/chat_api/Sources/chat_api/MCPClient.swift

@ -497,7 +497,8 @@ public class MCPClient {
} }
var connectedCount = 0 var connectedCount = 0
for (serverId: String, serverConfig) in mcpServers { for (serverIdKey, serverConfig) in mcpServers {
let serverId = serverIdKey // 明确声明 serverId
guard let configDict: [String : Any] = serverConfig as? [String: Any] else { guard let configDict: [String : Any] = serverConfig as? [String: Any] else {
continue continue
} }

Loading…
Cancel
Save