@@ -27,6 +27,10 @@ public class BaseController {
return ServletUtils.getRequest();
}
+ public String getIp() {
+ return ServletUtils.getClientIp(getRequest());
+ }
+
/**
* 获取请求参数
*/
@@ -0,0 +1,10 @@
+package com.mrxu.framework.common.util;
+public class MrxuConst {
+ public static int enable = 1;
+ public static int disable = 0;
+ public static int zero = 0;
+}