Sfoglia il codice sorgente

附件上传代码调整

沈静伟 3 anni fa
parent
commit
8fcb107167

+ 3 - 3
src/rest/openapi/restcontroller/wechatapp/system/OBSDocManage.java

@@ -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) {