From 3ba0123db48f8bab81ddf0913e1b95280ef545e8 Mon Sep 17 00:00:00 2001 From: Li Jun <buli@deloitte.com.cn> Date: 星期四, 31 三月 2022 17:56:53 +0800 Subject: [PATCH] Deploy0331 --- force-app/main/default/classes/PIHelper.cls | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/force-app/main/default/classes/PIHelper.cls b/force-app/main/default/classes/PIHelper.cls index 929bbc9..a6cc31f 100644 --- a/force-app/main/default/classes/PIHelper.cls +++ b/force-app/main/default/classes/PIHelper.cls @@ -58,8 +58,8 @@ insert traLog; } // confirm tx transaction - - public static void confirmTrans(String module,Integer isSuccess, String sfRecordId ,String transId ,String token,String transUrl,List<idList> idList){ + @future(callout =true) + public static void confirmTrans(String module,Integer isSuccess, String sfRecordId ,String transId ,String token,String transUrl,String idList){ Boolean result =false; Transaction_Log__c traLog = new Transaction_Log__c(); traLog.Module__c = 'Confirm Transaction '+module; @@ -82,9 +82,11 @@ TransactionRequestBody requestBody =new TransactionRequestBody(); requestBody.isSuccess=isSuccess; requestBody.sfRecordId=sfRecordId; - requestBody.idList=idList; + // requestBody.idList=idList; + requestBody.idList=(List < idList >)JSON.deserialize(idList,List < idList > .class); requestBody.txId =transId; request.setBody(JSON.serialize(requestBody)); + traLog.Request__c =JSON.serialize(requestBody); system.debug('request---'+request.tostring()); HttpResponse response = http.send(request); system.debug('confirm result--'+response.getBody()); -- Gitblit v1.9.1