测试营业执照

上级 efdef304
...@@ -7,6 +7,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; ...@@ -7,6 +7,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import com.mmc.iuav.http.HttpHelper; import com.mmc.iuav.http.HttpHelper;
import com.mmc.iuav.http.HttpsRequestUtil; import com.mmc.iuav.http.HttpsRequestUtil;
import com.mmc.iuav.user.constant.UserSystemConstant; import com.mmc.iuav.user.constant.UserSystemConstant;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.codec.digest.DigestUtils; import org.apache.commons.codec.digest.DigestUtils;
import org.apache.http.client.methods.HttpHead; import org.apache.http.client.methods.HttpHead;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -23,6 +24,7 @@ import java.util.regex.Pattern; ...@@ -23,6 +24,7 @@ import java.util.regex.Pattern;
* @Date: 2023/5/17 13:37 * @Date: 2023/5/17 13:37
*/ */
@Component @Component
@Slf4j
public class QccEntAuthUtil { public class QccEntAuthUtil {
@Autowired @Autowired
...@@ -104,6 +106,7 @@ public class QccEntAuthUtil { ...@@ -104,6 +106,7 @@ public class QccEntAuthUtil {
String bodys = "{\"image\":\""+businessLicenseUrl+"\"}"; String bodys = "{\"image\":\""+businessLicenseUrl+"\"}";
try { try {
String response = HttpsRequestUtil.httpsRequest(url, method, headers, bodys); String response = HttpsRequestUtil.httpsRequest(url, method, headers, bodys);
log.info("response11111111111111: " + response);
//获取response的body //获取response的body
if(response.equals("Invalid Result - invalid business license")){ if(response.equals("Invalid Result - invalid business license")){
return null; return null;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论