add:三线地址

This commit is contained in:
zhangzq
2024-05-14 16:03:38 +08:00
parent 15efc27f89
commit 447ce3f874
2 changed files with 9 additions and 3 deletions

View File

@@ -6,6 +6,7 @@ import cn.hutool.http.HttpRequest;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.nl.common.enums.StatusEnum;
import org.nl.modules.common.exception.BadRequestException;
import org.nl.modules.wql.core.bean.WQLObject;
@@ -34,9 +35,14 @@ public class AcsUtil {
result.put("data", new JSONObject());
return result;
}
String acsParam = "acs_url";
JSONObject jsonObject = list.getJSONObject(0);
String acs = jsonObject.getString("acs");
if (StringUtils.isNotEmpty(acs)){
acsParam=acs;
}
//ACS地址127.0.0.1:8010
String acsUrl = SpringContextHolder.getBean(SysParamServiceImpl.class).findByCode("acs_url").getValue();
String acsUrl = SpringContextHolder.getBean(SysParamServiceImpl.class).findByCode(acsParam).getValue();
String url = acsUrl + api;
try {

View File

@@ -12,7 +12,7 @@ public class CodeUtil{
final String[] code = {""};
HashMap<String,String> map = new HashMap<>();
map.put("flag", "1");
map.put("code", ruleCode);d
map.put("code", ruleCode);
GenCodeService service = SpringContextHolder.getBean(GenCodeServiceImpl.class);
String codeId = service.queryIdByCode(ruleCode);
RedissonUtils.lock(() -> {