高章伟
2023-03-02 e3c02c03dd2de442bbced87236f60a13a1cd154e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
public with sharing class FilePreviewDownVFController {
    public String staticResource {get; set;}
    public String fileKey {get; set;}
    public String fileName {get; set;}
    public String type {get; set;}
    public FilePreviewDownVFController(ApexPages.StandardController controller) {
        staticResource = JSON.serialize(PIHelper.getPIIntegrationInfo('Document'));
        Pagereference pf = ApexPages.currentPage();
        if(pf != null){
            fileKey = pf.getParameters().get('key');
            fileName = pf.getParameters().get('name');
            type = pf.getParameters().get('type');
        }
    }
}