Browse Source

修改居民码扫描请求方式

dev
luyan 2 years ago
parent
commit
c3c8954e52
  1. 10
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/JmmRiZhaoController.java

10
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/JmmRiZhaoController.java

@ -14,8 +14,8 @@ import org.apache.http.impl.client.HttpClients;
import org.apache.http.message.BasicNameValuePair; import org.apache.http.message.BasicNameValuePair;
import org.apache.http.util.EntityUtils; import org.apache.http.util.EntityUtils;
import org.springframework.http.MediaType; import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@ -34,11 +34,11 @@ import java.util.UUID;
@RequestMapping("jmmRiZhao") @RequestMapping("jmmRiZhao")
public class JmmRiZhaoController { public class JmmRiZhaoController {
@GetMapping("mutualDiscern/{QrCode}") @PostMapping("mutualDiscern")
public Result<String> mutualDiscern(@PathVariable("QrCode") String QrCode) { public Result<String> mutualDiscern(@RequestBody Map<String, String> QrCode) {
try { try {
JSONObject infoJson = new JSONObject(); JSONObject infoJson = new JSONObject();
infoJson.put("QrCode", QrCode); infoJson.put("QrCode", QrCode.get("QrCode"));
infoJson.put("useCityCode", JmmRiZhaoUtil.USE_CITY_CODE); infoJson.put("useCityCode", JmmRiZhaoUtil.USE_CITY_CODE);
infoJson.put("institutionCode", JmmRiZhaoUtil.INSTITUTION_CODE);//机构编码 infoJson.put("institutionCode", JmmRiZhaoUtil.INSTITUTION_CODE);//机构编码
infoJson.put("businessStepCode", JmmRiZhaoUtil.BUSINESS_STEP_CODE);//业务环节编码 infoJson.put("businessStepCode", JmmRiZhaoUtil.BUSINESS_STEP_CODE);//业务环节编码

Loading…
Cancel
Save