|
@@ -16,10 +16,7 @@ import com.qmth.teachcloud.common.enums.AppSourceEnum;
|
|
|
import com.qmth.teachcloud.common.enums.ExceptionResultEnum;
|
|
|
import com.qmth.teachcloud.common.service.SysUserService;
|
|
|
import com.qmth.teachcloud.common.service.TeachcloudCommonService;
|
|
|
-import com.qmth.teachcloud.common.util.AuthThirdUtil;
|
|
|
-import com.qmth.teachcloud.common.util.JacksonUtil;
|
|
|
-import com.qmth.teachcloud.common.util.Result;
|
|
|
-import com.qmth.teachcloud.common.util.ResultUtil;
|
|
|
+import com.qmth.teachcloud.common.util.*;
|
|
|
import io.swagger.annotations.*;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
@@ -135,7 +132,7 @@ public class OpenApiController {
|
|
|
|
|
|
@ApiOperation(value = "单点登录")
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "返回消息", response = Result.class)})
|
|
|
- @RequestMapping(value = "/F/login", method = RequestMethod.POST)
|
|
|
+ @RequestMapping(value = "/account/login", method = RequestMethod.POST)
|
|
|
@Aac(auth = BOOL.FALSE)
|
|
|
public Result accountLogin(@ApiParam(value = "时间", required = true) @RequestParam String time,
|
|
|
@ApiParam(value = "地址", required = true) @RequestParam String path,
|
|
@@ -152,9 +149,7 @@ public class OpenApiController {
|
|
|
if (Objects.isNull(signature) || Objects.equals(signature, "")) {
|
|
|
throw ExceptionResultEnum.PARAMS_ERROR.exception("鉴权信息不能为空");
|
|
|
}
|
|
|
- log.info("signature URLDecoder before:{}", signature);
|
|
|
- signature = URLDecoder.decode(signature, SystemConstant.CHARSET_NAME);
|
|
|
- log.info("signature URLDecoder after:{}", signature);
|
|
|
+ signature = new String(Base64Util.decode(signature), SystemConstant.CHARSET_NAME);
|
|
|
if (Objects.isNull(account) || Objects.equals(account, "")) {
|
|
|
throw ExceptionResultEnum.PARAMS_ERROR.exception("工号不能为空");
|
|
|
}
|