| | |
| | | } else { |
| | | logstr = iflog.Log__c; |
| | | } |
| | | // 添加aws上线开关 by sushanhu 20220420 |
| | | Boolean piOn =AWSServiceTool.getAWSServiceStatus(); |
| | | try{ |
| | | |
| | | //update to aws 2022/3/9 dennis |
| | | //add by sushanhu for test 20220421 |
| | | //piOn=false; |
| | | if (piOn) { |
| | | //update to aws 2022/3/9 dennis |
| | | PIHelper.PIIntegration pi =PIHelper.getPIIntegrationInfo('SBG027'); |
| | | NFMUtil.response result =NFMUtil.sendToPiAWS(rowDataStr,pi.newUrl,pi.token); |
| | | // NFMUtil.response result =NFMUtil.sendToPiAWS(rowDataStr,pi.newUrl,pi.token); |
| | | AWSServiceTool.response result = AWSServiceTool.sendToPiAWS(rowDataStr,pi.newUrl,pi.token);//update forpipl by sushanhu 20220425 |
| | | system.debug('aws result---'+result); |
| | | status = result.status; |
| | | system.debug('aws status--'+status); |
| | |
| | | iflog.ErrorLog__c +=responseBody; |
| | | } |
| | | //add by sushanhu 20220406 写入错误日志 end |
| | | // NFMUtil.sendToSap(rowDataStr, NFMUtil.SBG027_ENDPOINT); |
| | | // rowData.retry_cnt__c = 0; |
| | | }else { |
| | | NFMUtil.sendToSap(rowDataStr, NFMUtil.SBG027_ENDPOINT); |
| | | rowData.retry_cnt__c = 0; |
| | | |
| | | } |
| | | |
| | | }catch(Exception ex) { |
| | | // TODO IOException |
| | | // エラーが発生した場合 |