调整
This commit is contained in:
parent
d8804ccbd4
commit
ddc4c17930
@ -20,7 +20,7 @@
|
||||
:headers="headers"
|
||||
:on-success="handleSuccess"
|
||||
:on-error="handleError"
|
||||
:action="baseApi + '/api/busCarousel/pictures?sort=' + form.sort"
|
||||
:action="'/api/api/busCarousel/pictures?sort=' + form.sort"
|
||||
>
|
||||
<div class="eladmin-upload"><i class="el-icon-upload" /> 添加文件</div>
|
||||
</el-upload>
|
||||
@ -107,7 +107,6 @@ export default {
|
||||
computed: {
|
||||
...mapGetters([
|
||||
'baseApi',
|
||||
'fileUploadApi'
|
||||
])
|
||||
},
|
||||
methods: {
|
||||
|
@ -17,7 +17,6 @@ package me.zhengjie.service.impl;
|
||||
|
||||
import cn.hutool.core.lang.Dict;
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.alibaba.fastjson2.JSONArray;
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
@ -124,13 +123,10 @@ public class SysLogServiceImpl extends ServiceImpl<SysLogMapper, SysLog> impleme
|
||||
if (args[i] instanceof HttpServletRequest) {
|
||||
continue;
|
||||
}
|
||||
// 过滤掉 JSONArray
|
||||
if (args[i] instanceof JSONArray) {
|
||||
continue;
|
||||
}
|
||||
// 将RequestBody注解修饰的参数作为请求参数
|
||||
RequestBody requestBody = parameters[i].getAnnotation(RequestBody.class);
|
||||
if (requestBody != null) {
|
||||
if (JSON.toJSON(args[i]) instanceof com.alibaba.fastjson2.JSONArray) { continue; }
|
||||
params.putAll((JSONObject) JSON.toJSON(args[i]));
|
||||
} else {
|
||||
String key = parameters[i].getName();
|
||||
|
Loading…
Reference in New Issue
Block a user