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