瀏覽代碼

Merge remote-tracking branch 'Gogs/develop' into develop

沈静伟 4 年之前
父節點
當前提交
2dac3fd192
共有 3 個文件被更改,包括 2 次插入2 次删除
  1. 二進制
      src.rar
  2. 二進制
      src.zip
  3. 2 2
      src/rest/openapi/restcontroller/wechatapp/system/docManage.java

二進制
src.rar


二進制
src.zip


+ 2 - 2
src/rest/openapi/restcontroller/wechatapp/system/docManage.java

@@ -473,14 +473,14 @@ public class docManage extends Controller {
             tattachment.setValue("ftype", "default");
             tattachment.setValue("postfix", ftype);
             tattachment.setValue("serialnumber", fileName);
-            tattachment.setValue("fdocument", uploadfile.getFileName());
+            tattachment.setValue("fdocument", new String(uploadfile.getFileName().getBytes("iso8859-1"), "UTF-8"));
             tattachment.setValue("fobsurl", obsurl);
             if(!StringUtils.isBlank(type)) tattachment.setValue("type", type);
             tattachmentSet.save();
 
 
             Row row=new Row();
-            row.put("fdocument",uploadfile.getFileName());
+            row.put("fdocument",new String(uploadfile.getFileName().getBytes("iso8859-1"), "UTF-8"));
             row.put("fobsurl",obsurl);
             row.put("tattachmentid",tattachment.getUniqueIDValue());
             row.put("postfix",ftype);