|
版本: |
BeX5V3.5 |
小版本号: |
3.8 |
|
|
数据库: |
|
服务器操作系统: |
|
应用服务器: |
|
客户端操作系统: |
|
浏览器: |
|
|
|
本帖最后由 vakey 于 2019-7-27 11:30 编辑
url = DocUtils.InnerUtils.getdocServerAction({
"docPath" : docPath,
urlPattern : "/repository/file/view/" + fileID + "/last/content",
isFormAction : false,
context : this.getContext()
});
我用getdocServerAction方法获取的url是:
/x5/UI2/v_d4db9b15be38423fac1f0bb605b54c69l_zh_CNs_d_pc/system/service/doc/common/uploadDoc.j?dochost=http://127.0.0.1:8080/DocServer/repository/file/view//last/content这个url图片获取不到,发现docPath没有拼进去,docPath是有值的。下面是图片的json
[{"docID":"C8899C23B7400001D78B12953C6014A6",
"docName":"微信图片_20190727093252.png","size":"4006",
"docPath":"/45119099C23848ACA97D84FF888395CF/fbb55a6f-912d-4a68-992f-aef75be53447/703daef7-9103-4083-98e5-9aa90d7169cf/13a5b166-c188-433f-b22e-a2f732117dcc/c4249a93-d2ae-46ef-b634-3c9a4d91dddb",
"fileID":"4-45119099C23848ACA97D84FF888395CF","time":"2019-07-27T09:33:13.631Z"}]
我看论坛上别人的url是:$UI/system/service/doc/common/uploadDoc.j?dochost=http://localhost:8080/DocServer/repository/file/view/2-defaultDocNameSpace/last/content?key=f933c7f22e58992ce220df61190a807ed0427e9bf8e10af1e53c7e0f8b5b494f866eec09a41ab9342499c1c3713c41b7f34ab73b6f107
比我这个多了key,这个key是哪里来的,我不能展示图片是这个原因导致的吗?
|
|