|
@@ -6,9 +6,10 @@ import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
+
|
|
|
import cn.com.qmth.ac.bean.RedirectParam;
|
|
|
import cn.com.qmth.ac.service.CommonService;
|
|
|
import cn.com.qmth.ac.util.Result;
|
|
@@ -36,9 +37,10 @@ public class AuthController {
|
|
|
@ApiOperation(value = "cas鉴权退出接口")
|
|
|
@RequestMapping(value = "logout/{schoolCode}", method = RequestMethod.GET)
|
|
|
@ApiResponses({ @ApiResponse(code = 200, message = "返回消息", response = Result.class) })
|
|
|
- public void logout(@ApiParam(value = "学校编码") @PathVariable("schoolCode") String schoolCode,
|
|
|
- @ApiParam(value = "sessionId", required = false) @RequestParam(required = false) String gSessionId) {
|
|
|
- commonService.logout(schoolCode);
|
|
|
+ public JSONObject logout(@ApiParam(value = "学校编码") @PathVariable("schoolCode") String schoolCode) {
|
|
|
+ JSONObject js = new JSONObject();
|
|
|
+ js.put("url", commonService.logout(schoolCode));
|
|
|
+ return js;
|
|
|
}
|
|
|
|
|
|
}
|