获取token的loginName从外部传

This commit is contained in:
xiang2lin 2025-06-13 16:59:31 +08:00
parent 99e306dc9c
commit 59ed5e7fae
1 changed files with 5 additions and 2 deletions

View File

@ -178,8 +178,11 @@ public class OARestUtil {
hashMap.put(parameterName,example);
}
}
login_name = hashMap.get("loginName");
if (StrUtil.isEmpty(login_name)){
if (StrUtil.isNotEmpty(login_name)){
hashMap.put("loginName",login_name);
}
if (StrUtil.isEmpty(hashMap.get("loginName"))){
hashMap.put("loginName","hzya");
}
String result = HttpRequest.post(url).body(JSON.toJSONString(hashMap)).execute().body();