OSS备份管理功能上线
This commit is contained in:
@@ -5,7 +5,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class ToolsApplication {
|
||||
public static final String version="1.1.2";
|
||||
public static final String version="1.1.3";
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.out.println("当前版本号:" + version);
|
||||
|
||||
@@ -14,9 +14,12 @@ public class NasDepotManager {
|
||||
|
||||
@ResponseBody
|
||||
@RequestMapping("/add.do")
|
||||
public JSONObject addNasPath(String path) {
|
||||
public JSONObject addNasPath(String path,String type) {
|
||||
JSONObject json=new JSONObject();
|
||||
long size=RedisTools.list_add(DEPOT_NAME, path);
|
||||
JSONObject item=new JSONObject();
|
||||
item.put("path",path);
|
||||
item.put("type",type);
|
||||
long size=RedisTools.list_add(DEPOT_NAME,item.toJSONString());
|
||||
if(size==0){
|
||||
json.put("code",0);
|
||||
json.put("msg","添加失败");
|
||||
|
||||
Reference in New Issue
Block a user