/** 保存系统设置2 */ @RequestMapping(value = "/saveSys2") public ModelAndView saveSys2() throws Exception { ModelAndView mv = this.getModelAndView(); PageData pd = new PageData(); pd = this.getPageData(); Tools.writeFile( Const.FWATERM, pd.getString("isCheck1") + ",fh," + pd.getString("fcontent") + ",fh," + pd.getString("fontSize") + ",fh," + pd.getString("fontX") + ",fh," + pd.getString("fontY")); // 文字水印配置 Tools.writeFile( Const.IWATERM, pd.getString("isCheck2") + ",fh," + pd.getString("imgUrl") + ",fh," + pd.getString("imgX") + ",fh," + pd.getString("imgY")); // 图片水印配置 Watermark.fushValue(); mv.addObject("msg", "OK"); mv.setViewName("save_result"); return mv; }
/** 保存系统设置3 */ @RequestMapping(value = "/saveSys3") public ModelAndView saveSys3() throws Exception { ModelAndView mv = this.getModelAndView(); PageData pd = new PageData(); pd = this.getPageData(); Tools.writeFile(Const.WEIXIN, pd.getString("Token")); // 写入微信配置 mv.addObject("msg", "OK"); mv.setViewName("save_result"); return mv; }
/** 保存系统设置1 */ @RequestMapping(value = "/saveSys") public ModelAndView saveSys() throws Exception { ModelAndView mv = this.getModelAndView(); PageData pd = new PageData(); pd = this.getPageData(); Tools.writeFile(Const.SYSNAME, pd.getString("YSYNAME")); // 写入系统名称 Tools.writeFile(Const.PAGE, pd.getString("COUNTPAGE")); // 写入每页条数 Tools.writeFile( Const.EMAIL, pd.getString("SMTP") + ",fh," + pd.getString("PORT") + ",fh," + pd.getString("EMAIL") + ",fh," + pd.getString("PAW")); // 写入邮件服务器配置 Tools.writeFile( Const.SMS1, pd.getString("SMSU1") + ",fh," + pd.getString("SMSPAW1")); // 写入短信1配置 Tools.writeFile( Const.SMS2, pd.getString("SMSU2") + ",fh," + pd.getString("SMSPAW2")); // 写入短信2配置 mv.addObject("msg", "OK"); mv.setViewName("save_result"); return mv; }