|
@@ -28,7 +28,7 @@ public class WebUtil {
|
|
|
public static String getNum(JoinPoint pjp, HttpServletRequest request){
|
|
|
Object[] args = pjp.getArgs();
|
|
|
String contentType = request.getContentType();
|
|
|
- if(ContentType.JSON.getValue().equals(contentType)){
|
|
|
+ if(contentType.contains(ContentType.JSON.getValue())){
|
|
|
HashMap hashMap = JSON.parseObject(JSON.toJSONString(args[0]), HashMap.class);
|
|
|
return (String) hashMap.get("num");
|
|
|
}
|