Pircate / RxNetwork

A swift network library based on Moya/RxSwift.
MIT License
50 stars 4 forks source link

Endpoint的自定义 #3

Closed WS-Vincent closed 5 years ago

WS-Vincent commented 5 years ago

let endpointClosure = { target -> Endpoint in MoyaProvider.defaultEndpointMapping(for: target).replacing(task: configuration.taskClosure(target)) } 这个地方用的默认的Endpoint
要改变的话 是不是只能用Network.default.provider去设置了

Pircate commented 5 years ago

你需要改什么呢?

WS-Vincent commented 5 years ago

早上好,大佬。后来想想Endpoint也是对target做了相应操作转换,在target里面做也是一样。😀