|
@@ -1,7 +1,6 @@
|
|
|
package com.zanxiang.game.module.manage.controller;
|
|
|
|
|
|
import com.zanxiang.erp.security.annotation.PreAuthorize;
|
|
|
-import com.zanxiang.erp.security.util.SecurityUtil;
|
|
|
import com.zanxiang.game.module.manage.pojo.params.KfApiParam;
|
|
|
import com.zanxiang.game.module.manage.pojo.params.KfUserUpdateParam;
|
|
|
import com.zanxiang.game.module.manage.pojo.vo.KfGameVO;
|
|
@@ -9,7 +8,6 @@ import com.zanxiang.game.module.manage.service.IKfMsgService;
|
|
|
import com.zanxiang.game.module.manage.service.IKfUserService;
|
|
|
import com.zanxiang.module.util.JsonUtil;
|
|
|
import com.zanxiang.module.util.pojo.ResultVO;
|
|
|
-import com.zanxiang.module.web.util.IpUtil;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiResponse;
|
|
@@ -21,7 +19,6 @@ import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
import reactor.util.function.Tuple2;
|
|
|
|
|
|
-import javax.servlet.http.HttpServletRequest;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
@@ -46,9 +43,6 @@ public class KfMsgController {
|
|
|
@PreAuthorize(permissionKey = "manage:kf:uploadMsg")
|
|
|
@ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = Tuple2.class)})
|
|
|
public ResultVO<Tuple2<String, String>> uploadMsg(String param, MultipartFile files) {
|
|
|
- if (SecurityUtil.getUserId() == 413) {
|
|
|
- log.error("----------------> 1111111111111111111, param : {}", param);
|
|
|
- }
|
|
|
return ResultVO.ok(kfMsgService.uploadMsg(JsonUtil.toObj(param, KfApiParam.class), files));
|
|
|
}
|
|
|
|
|
@@ -64,11 +58,7 @@ public class KfMsgController {
|
|
|
@PostMapping(value = "/comm/api")
|
|
|
@PreAuthorize(permissionKey = "manage:kf:commApi")
|
|
|
@ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = String.class)})
|
|
|
- public ResultVO<String> list(@Validated @RequestBody KfApiParam param, HttpServletRequest request) {
|
|
|
- if (SecurityUtil.getUserId() == 413) {
|
|
|
- log.error("----------------> 888888888888888, param : {}, ip : {}, ua : {}, token : {}",
|
|
|
- JsonUtil.toString(param), IpUtil.getRealIp(request), request.getHeader("User-Agent"), SecurityUtil.getToken());
|
|
|
- }
|
|
|
+ public ResultVO<String> list(@Validated @RequestBody KfApiParam param) {
|
|
|
return ResultVO.ok(kfMsgService.kfApi(param));
|
|
|
}
|
|
|
|