/**
* 服务于第一步,设置当前存储方式(保存)
* @throws ConfigurationException
*/
@RequestMapping("/setAttachmentMode")
public String setLocalAttachmentFile(HttpServletRequest request, Model model,
@RequestParam(value = "mode", required = false, defaultValue="") String mode){
if(!Global.get("IW_AUTO_INSTALL_USE").equals("true")){
return error(model, "系统已禁止使用此!");
}
String m = AttachmentFile.MODE_LOCAL_FILE; //默认使用服务器进行存储
if(mode.equals(AttachmentFile.MODE_ALIYUN_OSS)){
//使用阿里云OSS
m = AttachmentFile.MODE_ALIYUN_OSS;
}
sqlService.executeSql("update system set value = '"+m+"' WHERE name = 'ATTACHMENT_FILE_MODE'");
//更新缓存
systemService.refreshSystemCache();
return redirect("install/systemSet.do");
}
InstallController_.java 文件源码
java
阅读 39
收藏 0
点赞 0
评论 0
项目:wangmarket
作者:
评论列表
文章目录