获取token的loginName从外部传
This commit is contained in:
parent
99e306dc9c
commit
59ed5e7fae
|
@ -178,8 +178,11 @@ public class OARestUtil {
|
||||||
hashMap.put(parameterName,example);
|
hashMap.put(parameterName,example);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
login_name = hashMap.get("loginName");
|
if (StrUtil.isNotEmpty(login_name)){
|
||||||
if (StrUtil.isEmpty(login_name)){
|
hashMap.put("loginName",login_name);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (StrUtil.isEmpty(hashMap.get("loginName"))){
|
||||||
hashMap.put("loginName","hzya");
|
hashMap.put("loginName","hzya");
|
||||||
}
|
}
|
||||||
String result = HttpRequest.post(url).body(JSON.toJSONString(hashMap)).execute().body();
|
String result = HttpRequest.post(url).body(JSON.toJSONString(hashMap)).execute().body();
|
||||||
|
|
Loading…
Reference in New Issue