|
发表于 2019-8-15 21:17:35
|
显示全部楼层
本帖最后由 cgft 于 2019-8-15 21:19 编辑
这个函数,在通达官方的《通达OA二次开发手册》里讲得已经很清楚了,你可以读读它。
根据附件信息获得附件的相关链接地址,得到的是一个一维数组,所以一次仅能提交一个附件的信息。
可以给你一个例子:- $ATTACHMENT_ID= '3247@1904_474869825.1357840200';
- $ATTACHMENT_NAME= '规章制度管理办法.doc';
- $MODULE= 'bylaw';
- $ATTURL_ARRAY= attach_url($ATTACHMENT_ID, $ATTACHMENT_NAME, $MODULE);
- /*
- 输出$ATTURL_ARRAY数组:
- Array
- (
- [down] => /inc/attach.php?AID=3247&MODULE=bylaw&YM=1904&ATTACHMENT_ID=1049630144&ATTACHMENT_NAME=%B9%E6%D5%C2%D6%C6%B6%C8%B9%DC%C0%ED%B0%EC%B7%A8.doc
- [rename] => ReNameFile('3247@1904_474869825.1357840200','%B9%E6%D5%C2%D6%C6%B6%C8%B9%DC%C0%ED%B0%EC%B7%A8.doc');
- [delete] => delete_attach('3247@1904_474869825.1357840200','规章制度管理办法.doc');
- [office_read] => /module/OC/?AID=3247&MODULE=bylaw&YM=1904&ATTACHMENT_ID=1049630144&ATTACHMENT_NAME=%B9%E6%D5%C2%D6%C6%B6%C8%B9%DC%C0%ED%B0%EC%B7%A8.doc&SIGN_KEY=1357840200&OP_CODE=e523K%2Bv8jveN5b3jyHgGIsYw1Y2oHlz2AT1MeA4W
- [office_edit] => /module/OC/?AID=3247&MODULE=bylaw&YM=1904&ATTACHMENT_ID=1049630144&ATTACHMENT_NAME=%B9%E6%D5%C2%D6%C6%B6%C8%B9%DC%C0%ED%B0%EC%B7%A8.doc&SIGN_KEY=1357840200&OP_CODE=e523K%2Bv8jveN5b3jyCpSd5RggYyvRwXxAGoQelkY
- [office_preview] => /module/xls_preview/?AID=3247&MODULE=bylaw&YM=1904&ATTACHMENT_ID=1049630144&ATTACHMENT_NAME=%B9%E6%D5%C2%D6%C6%B6%C8%B9%DC%C0%ED%B0%EC%B7%A8.doc&OP_CODE=e523K%2Bv8jveN5b3jyHoFIsQy0IqlE12hAm0deQ0
- [office_scan] => /module/AIP/?AID=3247&MODULE=bylaw&YM=1904&ATTACHMENT_ID=1049630144&ATTACHMENT_NAME=%B9%E6%D5%C2%D6%C6%B6%C8%B9%DC%C0%ED%B0%EC%B7%A8.doc&OP=4
- [quick_preview] => /module/quick_preview/?AID=3247&MODULE=bylaw&YM=1904&ATTACHMENT_ID=1049630144&ATTACHMENT_NAME=%B9%E6%D5%C2%D6%C6%B6%C8%B9%DC%C0%ED%B0%EC%B7%A8.doc&OP_CODE=e523K%2Bv8jveN5b3jyHoFIsQy0IqlE12hAm0deQ0
- [save] => SaveFile('bylaw,3247@1904_1049630144.1357840200','%B9%E6%D5%C2%D6%C6%B6%C8%B9%DC%C0%ED%B0%EC%B7%A8.doc');
- )
- */
复制代码
|
|