sjw 4 лет назад
Родитель
Сommit
6124f3b8a3
3 измененных файлов с 2 добавлено и 2 удалено
  1. BIN
      src.rar
  2. BIN
      src.zip
  3. 2 2
      src/rest/openapi/restcontroller/wechatapp/system/docManage.java


+ 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("ftype", "default");
             tattachment.setValue("postfix", ftype);
             tattachment.setValue("postfix", ftype);
             tattachment.setValue("serialnumber", fileName);
             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);
             tattachment.setValue("fobsurl", obsurl);
             if(!StringUtils.isBlank(type)) tattachment.setValue("type", type);
             if(!StringUtils.isBlank(type)) tattachment.setValue("type", type);
             tattachmentSet.save();
             tattachmentSet.save();
 
 
 
 
             Row row=new Row();
             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("fobsurl",obsurl);
             row.put("tattachmentid",tattachment.getUniqueIDValue());
             row.put("tattachmentid",tattachment.getUniqueIDValue());
             row.put("postfix",ftype);
             row.put("postfix",ftype);