Commit 3ba8a50b by WeiCong

增加coas用户推送开关

parent 10384161
......@@ -31,6 +31,8 @@ public class CoasHandleController {
private String client_secret;
@Value("${coas_server}")
private String coas_server;
@Value("${pushuser}")
private String pushuser;
private Gson gson = new Gson();
@Autowired
private NoUiVersion noUiVersion;
......@@ -98,7 +100,11 @@ public class CoasHandleController {
@ResponseBody
@RequestMapping(value = "/coas/pushuser", method = RequestMethod.POST)
public Object login(@RequestBody Map<String, String> dataMap) {
public Object pushuser(@RequestBody Map<String, String> dataMap) {
//如果推送开关关闭,则不做推送动作
if("off".equalsIgnoreCase(pushuser)){
return ResultUtil.result(ErrorCodes.SUCCESS, ErrorCodes.SUCCESS_INFO, null, noUiVersion.getVersion());
}
String loginid = dataMap.get("loginid");
String uname = dataMap.get("uname");
String coasroleid = dataMap.get("coasroleid");
......
client_id=ESFE
client_secret=666666
coas_server=http://111.1.12.211:8088/coas/
\ No newline at end of file
coas_server=http://111.1.12.211:8088/coas/
pushuser=off
\ No newline at end of file
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