统一转发接口,如果api地址内包含 http 或者 https 直接使用api完整地址,否则使用 应用接口地址 +api地址

This commit is contained in:
lvleigang 2024-06-06 08:43:01 +08:00
parent ce8f2063b2
commit 3ddfc211e3
1 changed files with 3 additions and 1 deletions

View File

@ -1771,7 +1771,9 @@ public class SysApplicationServiceImpl extends BaseService<SysApplicationEntity,
String bodys = sysExtensionApiEntity.getBodys();
//设置参数获取参数
StringBuffer url = new StringBuffer();
if(!receiveApi.getDestinationAddress().toLowerCase().startsWith("http")){
url.append(receiveApp.getInterfaceAddress());
}
url.append(receiveApi.getDestinationAddress());
if (querys != null) {
url.append("?");