|
@@ -36,7 +36,7 @@ public class WebUtil {
|
|
|
public static String getParameter(String paramName, JoinPoint pjp, HttpServletRequest request){
|
|
|
Object[] args = pjp.getArgs();
|
|
|
String contentType = request.getContentType();
|
|
|
- if(contentType.contains(ContentType.JSON.getValue())){
|
|
|
+ if(StrUtil.isNotEmpty(contentType) && contentType.contains(ContentType.JSON.getValue())){
|
|
|
HashMap hashMap = JSON.parseObject(JSON.toJSONString(args[0]), HashMap.class);
|
|
|
return (String) hashMap.get(paramName);
|
|
|
}
|