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