Commit 10384161 by WeiCong

根据coas系统用户新增推送接口需求调整代码实现

parent 3a06fcb3
...@@ -101,19 +101,19 @@ public class CoasHandleController { ...@@ -101,19 +101,19 @@ public class CoasHandleController {
public Object login(@RequestBody Map<String, String> dataMap) { public Object login(@RequestBody Map<String, String> dataMap) {
String loginid = dataMap.get("loginid"); String loginid = dataMap.get("loginid");
String uname = dataMap.get("uname"); String uname = dataMap.get("uname");
String coasloginid = dataMap.get("coasloginid"); String coasroleid = dataMap.get("coasroleid");
String coasuname = dataMap.get("coasuname"); String coasdeptid = dataMap.get("coasdeptid");
String certdn = dataMap.get("certdn"); String certdn = dataMap.get("certdn");
String coastel = dataMap.get("coastel"); String coastel = dataMap.get("coastel");
String url = coas_server + "push3rduser?client_id={client_id}&client_secret={client_secret}&optype={optype}&" + String url = coas_server + "api/v1/adduser?client_id={client_id}&client_secret={client_secret}&optype={optype}&" +
"coasloginid={coasloginid}&coasuname={coasuname}&coascertdn={coascertdn}&loginid={loginid}&uname={uname}" + "coasroleid={coasroleid}&coasdeptid={coasdeptid}&coascertdn={coascertdn}&loginid={loginid}&uname={uname}" +
"&coastel={coastel}"; "&coastel={coastel}";
Map<String, String> body = new HashMap<>(); Map<String, String> body = new HashMap<>();
body.put("client_id", client_id); body.put("client_id", client_id);
body.put("client_secret", client_secret); body.put("client_secret", client_secret);
body.put("optype", "CR"); body.put("optype", "CR");
body.put("coasloginid", coasloginid); body.put("coasroleid", coasroleid);
body.put("coasuname", coasuname); body.put("coasdeptid", coasdeptid);
body.put("coascertdn", certdn); body.put("coascertdn", certdn);
body.put("loginid", loginid); body.put("loginid", loginid);
body.put("uname", uname); body.put("uname", uname);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment