Browse Source

添加的登录日志

v5
ganhao 3 weeks ago
parent
commit
9d2ad81ef7
  1. 4
      lib/EmergencyService/zdxtEmergencyAppService/src/main/java/com/zdxt/app/controller/AppThirdLoginController.java
  2. 2
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/utils/HttpUtil.java

4
lib/EmergencyService/zdxtEmergencyAppService/src/main/java/com/zdxt/app/controller/AppThirdLoginController.java

@ -292,8 +292,10 @@ public class AppThirdLoginController {
log.info("accessKeySign: {}",secret);
params.put("appCode",code);
String data = null;
String paramsjson = JSONObject.toJSONString(params);
log.info("paramsjson: {}",paramsjson);
try {
data = HttpUtil.httpSendPost(siqUrl + "/pub/auth/getUserInfo", JSONObject.toJSONString(params),new HashMap<>());
data = HttpUtil.httpSendPost(siqUrl + "/pub/auth/getUserInfo", paramsjson,new HashMap<>());
} catch (Exception e) {
e.printStackTrace();
log.error("---> 获取深i企用户信息失败,返回结果:{}",data);

2
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/utils/HttpUtil.java

@ -198,7 +198,7 @@ public class HttpUtil {
HttpURLConnection connection = (HttpURLConnection) uri.openConnection();
connection.setRequestMethod("POST");
connection.setRequestProperty("Content-Type","application/json");
connection.setRequestProperty("Charsert","UTF-8");
connection.setRequestProperty("Charset","UTF-8");
for (Map.Entry<String, Object> entry : heardMap.entrySet()) {
// 对value进行相应的操作
connection.setRequestProperty(entry.getKey(), String.valueOf(entry.getValue()));

Loading…
Cancel
Save