代码更新

This commit is contained in:
2022-12-17 11:50:31 +08:00
parent 01419ecf8d
commit f5b7fc393a
3 changed files with 14 additions and 22 deletions

View File

@@ -5,6 +5,7 @@ import cn.hutool.core.util.StrUtil;
import cn.hutool.http.HttpRequest;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import org.nl.modules.common.exception.BadRequestException;
import org.nl.modules.system.service.impl.ParamServiceImpl;
import org.nl.modules.wql.util.SpringContextHolder;
import org.springframework.http.HttpStatus;
@@ -44,9 +45,9 @@ public class AcsUtil {
result.put("data", new JSONObject());
}
//acs抛异常这里
/*if (result.getString("status").equals(String.valueOf(HttpStatus.BAD_REQUEST.value())))
throw new BadRequestException(result.getString("message"));*/
if (!StrUtil.equals(result.getString("status"), "200")) {
throw new BadRequestException("下发失败:"+result.getString("message"));
}
return result;
}
}