mirror of
https://gitee.com/willfree/minoaClientWindows_gradle.git
synced 2026-10-05 01:15:44 +08:00
解决了上传文件名不能有中文的Bug,以及加入了对上传空文件的错误提示;解决了聊天中数字、大写字母、特殊字符导致出现的滑动栏问题;解决了邮件和报销中的detail有换行内容时的解析错误
This commit is contained in:
1 parent
f1ea3d7567
commit
01df69f085
36 files changed
+448
-390
No files matched your search
@@ -4,6 +4,7 @@ package cn.minoa.dataRequestInterface;
|
||||
import java.io.IOException;
|
||||
import java.io.RandomAccessFile;
|
||||
|
||||
import cn.minoa.util.StringByteLengthUtil;
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
@@ -513,6 +514,8 @@ public class MinoaDataAPI {
|
||||
jsonObject.put("filename", serverFilePath);
|
||||
orderInfo.setJsonString(jsonObject.toString());
|
||||
System.out.println("request head str: " + orderInfo.getJsonString());
|
||||
System.out.println("head str length: "+orderInfo.getJsonString().length());
|
||||
System.out.println("head str byte length: "+ StringByteLengthUtil.getByteLength(orderInfo.getJsonString()));
|
||||
} catch (JSONException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
@@ -527,7 +530,8 @@ public class MinoaDataAPI {
|
||||
int readLen = randomAccessFile.read(content, 0, 7000);
|
||||
randomAccessFile.close();
|
||||
System.out.println("file slice readLen == " + readLen);
|
||||
int jsonLen = orderInfo.getJsonString().length();
|
||||
// int jsonLen = orderInfo.getJsonString().length();
|
||||
int jsonLen=StringByteLengthUtil.getByteLength(orderInfo.getJsonString());
|
||||
requestByte = new byte[jsonLen + 1 + readLen];
|
||||
System.arraycopy(orderInfo.getJsonString().getBytes(), 0, requestByte, 0, jsonLen);
|
||||
requestByte[jsonLen] = 0;
|
||||
@@ -540,6 +544,7 @@ public class MinoaDataAPI {
|
||||
System.out.println("requestByte-len: " + requestByte.length);
|
||||
System.out.println("requestByte: " + requestByte);
|
||||
interest.setApplicationParameters(new Blob(requestByte));
|
||||
System.out.println("interest.getApplicationParameters().size(): "+interest.getApplicationParameters().size());
|
||||
// 密钥“黑盒”
|
||||
try {
|
||||
keyChain.sign(interest);
|
||||
|
||||
Reference in new issue
Block a user