Closed youngsing closed 6 years ago
设置的云同步似乎可以留着. 你改一下吧
我改的部分是取消基于下面地址的更新:
//API.swift
struct API {
// Use your own API
static let URL = "http://192.168.2.217:8000/api/"
........
}
其实就是注释了一下下面的代码:
//CloudSetManager.swift
API.updateProxyRuleSetListDetail(uuidsArray) { (response) in
if let sets = response.result.value {
do {
try ProxyRuleSet.addRemoteArray(sets)
}catch {
error.log("Unable to save updated rulesets")
return
}
}else {
response.result.error?.log("Fail to update ruleset details")
}
}
和你说的“设置的云同步”应该是不一样的东西吧?
还是说,我理解错了上面的,基于192.168.2.217
这个地址的更新逻辑?
我没空看用户界面层面的代码. 仅从 CloudSet
推测是云存储的部分. 如果不是, 就可以合并了.
merged.
CloudSet
是原作者自定义的云集,也就是预定义配置文件,由CloudSetManager
管理更新,这部分代码暂时算是没作用了。
设置的云同步由SyncManager
管理的,这部分代码没有改动。
RequestOverviewVC
CloudSet
inCollectionViewController
and disable the update for it.有需要可以看看。。