|
我公司根据下面的java代码来存储每个附件的URL,但是有少部分URL里面会莫名其妙的带上[url=]beginTranctionKey参数,导致URL无法打开附件,请问什么情况下会产生这个参数?[/url]
String fIDPhoto = row.getString("fIDPhoto");// 取出图片字段
String fIDScanT = row.getString("fIDScanT");// 取出身份证正面
String fIDScan = row.getString("fIDScan");// 取出身份证反面
String englishScan = row.getString("englishScan");// 取出英语等级
String sLanScan = row.getString("sLanScan");// 取出第二外语
if (!Utils.isEmptyString(fIDPhoto) && !"[]".equals(fIDPhoto)) {
JSONArray ja = JSONArray.parseArray(fIDPhoto);
JSONObject jsonObject = ja.getJSONObject(0);
String docPath = jsonObject.getString("docPath");
String fileID = jsonObject.getString("fileID");
try {
String urlPattern = "/repository/file/view/" + fileID + "/last/content";
String url = DocAdapter.queryNoPermissionHost(true, docPath, urlPattern, true); // 通过docPath和fileID获得图片的url
row.setValue("fIDPhotoUrl", address+"/x5"+url+"&bsessionid="); // 给列赋值
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
|
|