Skip to content

Commit

Permalink
feat:解决保存未同步问题。
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven committed Mar 19, 2021
1 parent 22748c1 commit 202ed56
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,64 +183,32 @@
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "9F6A3FF9-2096-496B-8998-5DF112BBB5C9"
uuid = "6A8FA8A5-D8DC-432A-9CAB-3738149D5DBB"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "SwiftJSONModeler For Xcode/YApi/YApiHelper.swift"
filePath = "SwiftJSONModeler For Xcode/YApi/YApiRequest.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "56"
endingLineNumber = "56"
landmarkName = "object(from:dic:)"
startingLineNumber = "58"
endingLineNumber = "58"
landmarkName = "data(id:token:host:comple:)"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "4EE8686A-9525-4D85-BBD2-7C358537B8EC"
uuid = "910DB927-7AB0-4A9F-A9AA-9BD8EE73AC9F"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "SwiftJSONModeler For Xcode/YApi/YApiHelper.swift"
filePath = "SwiftJSONModeler For Xcode/YApi/YApiRequest.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "42"
endingLineNumber = "42"
landmarkName = "check(from:)"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "7AAA994E-CF13-4368-AE2D-9112BFA27732"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "SwiftJSONModeler For Xcode/YApi/YApiHelper.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "101"
endingLineNumber = "101"
landmarkName = "getPathObjects(path:from:)"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "72921868-82CF-4D8E-9A98-41E44BC2BE8A"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "SwiftJSONModeler For Xcode/YApi/YApiHelper.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "95"
endingLineNumber = "95"
landmarkName = "getPathObjects(path:from:)"
startingLineNumber = "45"
endingLineNumber = "45"
landmarkName = "data(id:comple:)"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
Expand Down
6 changes: 6 additions & 0 deletions SwiftJSONModeler For Xcode/Config/ConfigCenter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ class ConfigCenter {
func save() -> Bool {
return Self.writeConfig(config)
}
/// 获取最新配置
func latest() -> ConfigModel {
let model = Self.readConfig()
config = model
return model
}


}
Expand Down
2 changes: 1 addition & 1 deletion SwiftJSONModeler For Xcode/YApi/YApiRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ extension String {

class YApiRequest {
private static let errorCenter = ErrorCenter.shared
private static let config = ConfigCenter.default.config
private static var config: ConfigModel { return ConfigCenter.default.latest() }//
private static func isAvailable(id: String) -> Bool {
guard !id.isEmpty else {
errorCenter.message = "YApi接口id不能为空"
Expand Down

0 comments on commit 202ed56

Please sign in to comment.