puzhibing
2022-09-29 e28d33c09405e246a2d75fcb1f69a9e8e9d911b8
UserIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/api/FeedbackController.java
@@ -41,15 +41,16 @@
    @ApiOperation(value = "提交反馈意见", tags = {"用户端-个人中心"}, notes = "")
    @ApiImplicitParams({
            @ApiImplicitParam(value = "反馈内容", name = "content", required = true, dataType = "string"),
            @ApiImplicitParam(value = "语言类型(1=简体中文,2=英语,3=法语)", name = "language", required = false, dataType = "int"),
            @ApiImplicitParam(name = "Authorization", value = "Bearer +token", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9.....")
    })
    public ResultUtil feedback(String content, HttpServletRequest request){
    public ResultUtil feedback(String content, Integer language, HttpServletRequest request){
        try {
            Integer uid = userInfoService.getUserIdFormRedis(request);
            if(uid == null){
                return ResultUtil.tokenErr();
            }
            return feedbackService.feedback(content, uid);
            return feedbackService.feedback(content, uid, language);
        }catch (Exception e){
            e.printStackTrace();
            return ResultUtil.runErr();