|
|
@@ -66,6 +66,7 @@ public class OBSDocManage extends Controller {
|
|
|
map.put("ownertable", ownertable);
|
|
|
map.put("ownerid", ownerid);
|
|
|
map.put("ftype", ftype);
|
|
|
+ map.put("type", (String) content.getOrDefault("type", ""));
|
|
|
|
|
|
obsfilemap.put(serialnumber, map);
|
|
|
} catch (Exception e) {
|
|
|
@@ -92,7 +93,6 @@ public class OBSDocManage extends Controller {
|
|
|
String ownertable = fileobject.getString("ownertable");
|
|
|
String ownerid = fileobject.getString("ownerid");
|
|
|
String ftype = fileobject.getString("ftype");
|
|
|
- String type = fileobject.getString("type");
|
|
|
HttpMethodEnum HttpMethod = HttpMethodEnum.PUT;
|
|
|
if (content.containsKey("HttpMethod")) {
|
|
|
if ("post".equalsIgnoreCase(content.getString("HttpMethod"))) {
|
|
|
@@ -112,7 +112,7 @@ public class OBSDocManage extends Controller {
|
|
|
object.put("filename", filename);
|
|
|
object.put("filetype", filetype);
|
|
|
object.put("ftype", ftype);
|
|
|
- object.put("type", type);
|
|
|
+ object.put("type", content.getOrDefault("type", ""));
|
|
|
|
|
|
returnarray.add(object);
|
|
|
|
|
|
@@ -122,7 +122,7 @@ public class OBSDocManage extends Controller {
|
|
|
map.put("ownertable", ownertable);
|
|
|
map.put("ownerid", ownerid);
|
|
|
map.put("ftype", ftype);
|
|
|
- map.put("type", type);
|
|
|
+ map.put("type", (String) content.getOrDefault("type", ""));
|
|
|
|
|
|
obsfilemap.put(serialnumber, map);
|
|
|
} catch (Exception e) {
|