loginName默认值修改
This commit is contained in:
parent
cbeb66f9dd
commit
f84c0a37bf
|
@ -177,10 +177,13 @@ public class RestUtil {
|
|||
}
|
||||
}
|
||||
login_name = hashMap.get("loginName");
|
||||
hashMap.put("loginName",login_name);
|
||||
if (StrUtil.isEmpty(login_name)){
|
||||
hashMap.put("loginName","hzya");
|
||||
hashMap.put("loginName","seeyon");
|
||||
}
|
||||
String result = HttpRequest.post(url).body(JSON.toJSONString(hashMap)).execute().body();
|
||||
String params = JSON.toJSONString(hashMap);
|
||||
logger.info("获取token的url:{},请求参数:{}",url,params);
|
||||
String result = HttpRequest.post(url).body(params).execute().body();
|
||||
JSONObject jsonObject = JSONObject.parseObject(result);
|
||||
if (null != jsonObject) {
|
||||
logger.info("======token:{}======" ,jsonObject.getString("id"));
|
||||
|
|
Loading…
Reference in New Issue