现在有个需求是需要在一个接口请求的时候,如果请求失败,需要切换到另一个域名请求这个接口,请问需要用什么方法,可以快捷的实现这个需求呢?
提出问题前请先确认完成了下列几项步骤 New Issue Checklist
问题描述 Issue Description
请给出所提出问题的详尽描述,包括具体的错误信息,打印的堆栈等等,以及重现此问题的具体步骤。
Please fill in the detailed description of the issue (full output of any stack trace, compiler error, ...) and the steps to reproduce the issue.
现在有个需求是需要在一个接口请求的时候,如果请求失败,需要切换到另一个域名请求这个接口,请问需要用什么方法,可以快捷的实现这个需求呢?
提出问题前请先确认完成了下列几项步骤 New Issue Checklist
问题描述 Issue Description
请给出所提出问题的详尽描述,包括具体的错误信息,打印的堆栈等等,以及重现此问题的具体步骤。
Please fill in the detailed description of the issue (full output of any stack trace, compiler error, ...) and the steps to reproduce the issue.