add:三线地址
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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(() -> {
|
||||
|
||||
Reference in New Issue
Block a user