|
@@ -9,12 +9,16 @@ import com.qmth.teachcloud.common.entity.BasicSchool;
|
|
|
import com.qmth.teachcloud.common.entity.SysUser;
|
|
|
import com.qmth.teachcloud.common.enums.ExceptionResultEnum;
|
|
|
import com.qmth.teachcloud.common.service.CacheService;
|
|
|
+import com.qmth.teachcloud.common.util.JacksonUtil;
|
|
|
import com.qmth.teachcloud.common.util.Result;
|
|
|
import com.qmth.teachcloud.common.util.ServletUtil;
|
|
|
+import com.qmth.teachcloud.report.aspect.ApiControllerAspect;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiResponse;
|
|
|
import io.swagger.annotations.ApiResponses;
|
|
|
+import org.slf4j.Logger;
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
@@ -30,6 +34,7 @@ import java.util.Objects;
|
|
|
@RestController
|
|
|
@RequestMapping(ApiConstant.DEFAULT_URI_PREFIX + "/${prefix.url.reportWuda}")
|
|
|
public class WudaOpenApiController {
|
|
|
+ private final static Logger log = LoggerFactory.getLogger(WudaOpenApiController.class);
|
|
|
|
|
|
@Resource
|
|
|
DictionaryConfig dictionaryConfig;
|
|
@@ -42,6 +47,7 @@ public class WudaOpenApiController {
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "返回消息", response = Result.class)})
|
|
|
@Aac(auth = BOOL.FALSE)
|
|
|
public void authentication(HttpServletRequest request, HttpServletResponse response) throws IOException {
|
|
|
+ log.info("student request.getRemoteUser():{}", JacksonUtil.parseJson(request.getRemoteUser()));
|
|
|
String uid = request.getRemoteUser();
|
|
|
if (Objects.isNull(uid)) {
|
|
|
throw ExceptionResultEnum.NOT_LOGIN.exception();
|
|
@@ -56,6 +62,7 @@ public class WudaOpenApiController {
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "返回消息", response = Result.class)})
|
|
|
@Aac(auth = BOOL.FALSE)
|
|
|
public void userAuthentication(HttpServletRequest request, HttpServletResponse response) throws IOException {
|
|
|
+ log.info("user request.getRemoteUser():{}", JacksonUtil.parseJson(request.getRemoteUser()));
|
|
|
String uid = request.getRemoteUser();
|
|
|
if (Objects.isNull(uid)) {
|
|
|
throw ExceptionResultEnum.NOT_LOGIN.exception();
|