SwiftMesh icon indicating copy to clipboard operation
SwiftMesh copied to clipboard

MeshRequest 泛型请求的请求错误处理

Open HZRZCW opened this issue 2 years ago • 1 comments

像这个请求,如果请求错误了只返还nil,怎么获取错误情况进行相应的操作呢?MeshRequest<TestModel>.get(“https://api.apiopen.top/getJoke?page=1&count=2&type=video”) { (model) in print(model!) }

HZRZCW avatar Mar 05 '22 15:03 HZRZCW

在config里边

zjinhu avatar Mar 10 '22 09:03 zjinhu