| Line 66... |
Line 66... |
| 66 |
static{
|
66 |
static{
|
| 67 |
File resourceBaseDir = new File("/tmp/emi-resource/");
|
67 |
File resourceBaseDir = new File("/tmp/emi-resource/");
|
| 68 |
if(!resourceBaseDir.exists()){
|
68 |
if(!resourceBaseDir.exists()){
|
| 69 |
resourceBaseDir.mkdir();
|
69 |
resourceBaseDir.mkdir();
|
| 70 |
}
|
70 |
}
|
| 71 |
int [] gatewayIds = {5,10,11,12};
|
71 |
int [] gatewayIds = {5,10,11,12,14};
|
| 72 |
for(int gatewayId: gatewayIds){
|
72 |
for(int gatewayId: gatewayIds){
|
| 73 |
String resourceDirPath = "/tmp/emi-resource/" + gatewayId + "/";
|
73 |
String resourceDirPath = "/tmp/emi-resource/" + gatewayId + "/";
|
| 74 |
try {
|
74 |
try {
|
| 75 |
InputStream inputStream = Class.class.getResourceAsStream(ConfigClient.getClient().get("emi_payment_resource_file_path") + gatewayId + File.separator + resourceFileName);
|
75 |
InputStream inputStream = Class.class.getResourceAsStream(ConfigClient.getClient().get("emi_payment_resource_file_path") + gatewayId + File.separator + resourceFileName);
|
| 76 |
File resourceDir = new File(resourceDirPath);
|
76 |
File resourceDir = new File(resourceDirPath);
|