Commit 10384161 by WeiCong

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

parent 3a06fcb3
......@@ -101,19 +101,19 @@ public class CoasHandleController {
public Object login(@RequestBody Map<String, String> dataMap) {
String loginid = dataMap.get("loginid");
String uname = dataMap.get("uname");
String coasloginid = dataMap.get("coasloginid");
String coasuname = dataMap.get("coasuname");
String coasroleid = dataMap.get("coasroleid");
String coasdeptid = dataMap.get("coasdeptid");
String certdn = dataMap.get("certdn");
String coastel = dataMap.get("coastel");
String url = coas_server + "push3rduser?client_id={client_id}&client_secret={client_secret}&optype={optype}&" +
"coasloginid={coasloginid}&coasuname={coasuname}&coascertdn={coascertdn}&loginid={loginid}&uname={uname}" +
String url = coas_server + "api/v1/adduser?client_id={client_id}&client_secret={client_secret}&optype={optype}&" +
"coasroleid={coasroleid}&coasdeptid={coasdeptid}&coascertdn={coascertdn}&loginid={loginid}&uname={uname}" +
"&coastel={coastel}";
Map<String, String> body = new HashMap<>();
body.put("client_id", client_id);
body.put("client_secret", client_secret);
body.put("optype", "CR");
body.put("coasloginid", coasloginid);
body.put("coasuname", coasuname);
body.put("coasroleid", coasroleid);
body.put("coasdeptid", coasdeptid);
body.put("coascertdn", certdn);
body.put("loginid", loginid);
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