企业列表出来了
parent
10fa493ad0
commit
73219c2739
|
@ -5,9 +5,9 @@
|
|||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="72651396-d9d2-4022-b080-e21d75d1bedb" name="更改" comment="企业列表出来了">
|
||||
<change afterPath="$PROJECT_DIR$/cloud-market-common/src/main/java/com/muyu/market/config/JavaGetConfig.java" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/logs/cloud-system/error.2024-09-04.log" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/logs/cloud-system/info.2024-09-04.log" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/logs/cloud-system/error.log" beforeDir="false" afterPath="$PROJECT_DIR$/logs/cloud-system/error.log" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/logs/cloud-system/info.log" beforeDir="false" afterPath="$PROJECT_DIR$/logs/cloud-system/info.log" afterDir="false" />
|
||||
</list>
|
||||
|
@ -188,91 +188,7 @@
|
|||
<workItem from="1725621072988" duration="7858000" />
|
||||
<workItem from="1725671427915" duration="175000" />
|
||||
<workItem from="1725706338514" duration="6144000" />
|
||||
<workItem from="1725757403389" duration="3284000" />
|
||||
</task>
|
||||
<task id="LOCAL-00003" summary="初始化">
|
||||
<created>1724048288127</created>
|
||||
<option name="number" value="00003" />
|
||||
<option name="presentableId" value="LOCAL-00003" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1724048288127</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00004" summary="初始化">
|
||||
<created>1724306788029</created>
|
||||
<option name="number" value="00004" />
|
||||
<option name="presentableId" value="LOCAL-00004" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1724306788029</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00005" summary="初始化">
|
||||
<created>1724307722405</created>
|
||||
<option name="number" value="00005" />
|
||||
<option name="presentableId" value="LOCAL-00005" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1724307722405</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00006" summary="初始化">
|
||||
<created>1724308055897</created>
|
||||
<option name="number" value="00006" />
|
||||
<option name="presentableId" value="LOCAL-00006" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1724308055897</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00007" summary="初始化">
|
||||
<created>1724308395101</created>
|
||||
<option name="number" value="00007" />
|
||||
<option name="presentableId" value="LOCAL-00007" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1724308395101</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00008" summary="初始化">
|
||||
<created>1724308787393</created>
|
||||
<option name="number" value="00008" />
|
||||
<option name="presentableId" value="LOCAL-00008" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1724308787393</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00009" summary="初始化">
|
||||
<created>1724309267148</created>
|
||||
<option name="number" value="00009" />
|
||||
<option name="presentableId" value="LOCAL-00009" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1724309267148</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00010" summary="初始化">
|
||||
<created>1724309446871</created>
|
||||
<option name="number" value="00010" />
|
||||
<option name="presentableId" value="LOCAL-00010" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1724309446871</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00011" summary="初始化">
|
||||
<created>1724318427233</created>
|
||||
<option name="number" value="00011" />
|
||||
<option name="presentableId" value="LOCAL-00011" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1724318427233</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00012" summary="初始化">
|
||||
<created>1724318901138</created>
|
||||
<option name="number" value="00012" />
|
||||
<option name="presentableId" value="LOCAL-00012" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1724318901138</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00013" summary="初始化">
|
||||
<created>1724322101310</created>
|
||||
<option name="number" value="00013" />
|
||||
<option name="presentableId" value="LOCAL-00013" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1724322101310</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00014" summary="初始化">
|
||||
<created>1724323782369</created>
|
||||
<option name="number" value="00014" />
|
||||
<option name="presentableId" value="LOCAL-00014" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1724323782369</updated>
|
||||
<workItem from="1725757403389" duration="14577000" />
|
||||
</task>
|
||||
<task id="LOCAL-00015" summary="初始化">
|
||||
<created>1724841947652</created>
|
||||
|
@ -533,7 +449,91 @@
|
|||
<option name="project" value="LOCAL" />
|
||||
<updated>1725758991888</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="52" />
|
||||
<task id="LOCAL-00052" summary="企业列表出来了">
|
||||
<created>1725762912271</created>
|
||||
<option name="number" value="00052" />
|
||||
<option name="presentableId" value="LOCAL-00052" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1725762912271</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00053" summary="企业列表出来了">
|
||||
<created>1725764546571</created>
|
||||
<option name="number" value="00053" />
|
||||
<option name="presentableId" value="LOCAL-00053" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1725764546571</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00054" summary="企业列表出来了">
|
||||
<created>1725765589100</created>
|
||||
<option name="number" value="00054" />
|
||||
<option name="presentableId" value="LOCAL-00054" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1725765589100</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00055" summary="企业列表出来了">
|
||||
<created>1725766084876</created>
|
||||
<option name="number" value="00055" />
|
||||
<option name="presentableId" value="LOCAL-00055" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1725766084876</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00056" summary="企业列表出来了">
|
||||
<created>1725766476441</created>
|
||||
<option name="number" value="00056" />
|
||||
<option name="presentableId" value="LOCAL-00056" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1725766476441</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00057" summary="企业列表出来了">
|
||||
<created>1725767407133</created>
|
||||
<option name="number" value="00057" />
|
||||
<option name="presentableId" value="LOCAL-00057" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1725767407133</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00058" summary="企业列表出来了">
|
||||
<created>1725767670392</created>
|
||||
<option name="number" value="00058" />
|
||||
<option name="presentableId" value="LOCAL-00058" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1725767670392</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00059" summary="企业列表出来了">
|
||||
<created>1725776315010</created>
|
||||
<option name="number" value="00059" />
|
||||
<option name="presentableId" value="LOCAL-00059" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1725776315010</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00060" summary="企业列表出来了">
|
||||
<created>1725776354918</created>
|
||||
<option name="number" value="00060" />
|
||||
<option name="presentableId" value="LOCAL-00060" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1725776354918</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00061" summary="企业列表出来了">
|
||||
<created>1725779438586</created>
|
||||
<option name="number" value="00061" />
|
||||
<option name="presentableId" value="LOCAL-00061" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1725779438586</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00062" summary="企业列表出来了">
|
||||
<created>1725779928044</created>
|
||||
<option name="number" value="00062" />
|
||||
<option name="presentableId" value="LOCAL-00062" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1725779928044</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00063" summary="企业列表出来了">
|
||||
<created>1725784547108</created>
|
||||
<option name="number" value="00063" />
|
||||
<option name="presentableId" value="LOCAL-00063" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1725784547108</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="64" />
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TypeScriptGeneratedFilesManager">
|
||||
|
|
|
@ -0,0 +1,47 @@
|
|||
package com.muyu.market.config;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.InputStreamReader;
|
||||
import java.net.URL;
|
||||
import java.net.URLEncoder;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
public class JavaGetConfig {
|
||||
public static String standing(String idcard, String realname) throws Exception {
|
||||
String apiKey = "1f17535bf737e1ab3165b7edcabced88";
|
||||
String apiUrl = "http://op.juhe.cn/idcard/query";
|
||||
|
||||
HashMap<String, String> map = new HashMap<>();
|
||||
map.put("key", apiKey);
|
||||
map.put("idcard", idcard);
|
||||
map.put("realname", realname);
|
||||
map.put("orderid", "");
|
||||
|
||||
URL url = new URL(String.format(apiUrl + "?" + params(map)));
|
||||
BufferedReader in = new BufferedReader(new InputStreamReader((url.openConnection()).getInputStream()));
|
||||
String inputLine;
|
||||
StringBuffer response = new StringBuffer();
|
||||
while ((inputLine = in.readLine()) != null) {
|
||||
response.append(inputLine);
|
||||
}
|
||||
in.close();
|
||||
System.out.println(response);
|
||||
return response.toString();
|
||||
}
|
||||
|
||||
public static String params(Map<String, String> map) {
|
||||
return map.entrySet().stream()
|
||||
.map(entry -> {
|
||||
try {
|
||||
return entry.getKey() + "=" + URLEncoder.encode(entry.getValue(), StandardCharsets.UTF_8.toString());
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return entry.getKey() + "=" + entry.getValue();
|
||||
}
|
||||
})
|
||||
.collect(Collectors.joining("&"));
|
||||
}
|
||||
}
|
|
@ -9,6 +9,7 @@ import com.muyu.common.core.web.page.TableDataInfo;
|
|||
import com.muyu.common.log.annotation.Log;
|
||||
import com.muyu.common.log.enums.BusinessType;
|
||||
import com.muyu.common.security.annotation.RequiresPermissions;
|
||||
import com.muyu.market.config.JavaGetConfig;
|
||||
import com.muyu.market.config.MobileLocationConfig;
|
||||
import com.muyu.market.config.SimpleWeatherConfig;
|
||||
import com.muyu.market.config.ThirdPartyConfig;
|
||||
|
@ -118,4 +119,9 @@ public class SysApitypeController extends BaseController
|
|||
}
|
||||
return "error";
|
||||
}
|
||||
|
||||
@GetMapping("/standing/{idcard}/{realname}")
|
||||
public String standing(@PathVariable("idcard") String idcard,@PathVariable("realname") String realname) throws Exception{
|
||||
return JavaGetConfig.standing(idcard,realname);
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue