修复请求单号重复问题

This commit is contained in:
liaozetao
2024-01-04 11:49:06 +08:00
parent 89c4fdd5fc
commit 53a56d8c31

View File

@@ -71,7 +71,7 @@ public class MyCardStrategy extends AbstractPayStrategy {
String amount = BigDecimal.valueOf(chargeRecord.getLocalAmount()).divide(Constant.HUNDRED, 2, RoundingMode.HALF_UP).toString();
String currency = chargeRecord.getLocalCurrencyCode();
//获取myCard的授权码和H5支付页面地址
AuthGlobalResp authGlobalResp = myCardService.authGlobal(chargeProdId, String.valueOf(uid), String.valueOf(uid), paymentType, itemCode, productName, amount, currency);
AuthGlobalResp authGlobalResp = myCardService.authGlobal(chargeRecord.getChargeRecordId(), String.valueOf(uid), String.valueOf(uid), paymentType, itemCode, productName, amount, currency);
chargeRecord.setExtra(authGlobalResp.getAuthCode());
chargeRecord.setMetadata(JSONObject.toJSONString(authGlobalResp));
Map<String, Object> map = new HashMap<>();