浏览代码

fix mobile

he2802 2 年之前
父节点
当前提交
8b27d07af1

+ 9 - 0
zhongzheng-api/src/main/java/com/zhongzheng/controller/cmmon/CommonController.java

@@ -257,4 +257,13 @@ public class CommonController extends BaseController {
         }
     }
 
+    @ApiOperation("移动端配置参数")
+    @GetMapping("/mobileConfig")
+    public AjaxResult<Map<String,Object>> mobileConfig(ConfigQueryBo bo) {
+        Map<String,Object> map = new HashMap<>();
+        String json = configService.selectConfigByKey("home.mobile");
+        map.put("mobileConfig",json);
+        return AjaxResult.success(map);
+    }
+
 }

+ 3 - 0
zhongzheng-common/src/main/java/com/zhongzheng/common/utils/ToolsUtils.java

@@ -285,6 +285,9 @@ public class ToolsUtils {
         if(!sign.equals(ToolsUtils.EncoderByMd5(newSign))){
             return false;
         }
+        if((Long.parseLong(stamp)+10L>(DateUtils.getNowTime().longValue()))&&(Long.parseLong(stamp)<(DateUtils.getNowTime().longValue()-10L))){
+            return false;
+        }
         return true;
     }