fix(接口测试): 修复ServiceKey与ServiceInterface颠倒的bug

This commit is contained in:
q4speed 2020-08-06 15:51:28 +08:00
parent 3db24258f4
commit b48f7e7468
1 changed files with 2 additions and 2 deletions

View File

@ -297,8 +297,8 @@ public class APITestService {
if (info.length > 1) {
provider.setVersion(info[1]);
}
provider.setService(info[0]);
provider.setServiceInterface(p);
provider.setService(p);
provider.setServiceInterface(info[0]);
Map<String, URL> services = providerService.findByService(p);
if (services != null && !services.isEmpty()) {
String[] methods = services.values().stream().findFirst().get().getParameter(CommonConstants.METHODS_KEY).split(",");