dyencryptedCode

This commit is contained in:
2025-10-29 23:31:13 +08:00
parent fd3ed59a2b
commit a16edc88bf

View File

@ -25,6 +25,7 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.atomic.AtomicReference;
@ -128,6 +129,7 @@ public class GroupBuyCouponServiceImpl implements GroupBuyCouponService {
response.getData().getCertificates().forEach(certificate -> {
productIdMap.put("dyOrderId",String.valueOf(certificate.getCertificateId()));
productIdMap.put("dyProductId", String.valueOf(certificate.getSku().getSkuId()));
productIdMap.put("dyencryptedCode", certificate.getEncryptedCode());
if( certificate.getReserveInfo() != null && certificate.getReserveInfo().getOrderReserveUserInfoList() != null && certificate.getReserveInfo().getOrderReserveUserInfoList().size()>0){
certificate.getReserveInfo().getOrderReserveUserInfoList().forEach(orderReserveUserInfo -> {
String phoneNumber = orderReserveUserInfo.getPhone();
@ -150,7 +152,7 @@ public class GroupBuyCouponServiceImpl implements GroupBuyCouponService {
CertificateVerifyRequest verifyRequest = new CertificateVerifyRequest();
verifyRequest.setVerifyToken(verifyToken);
verifyRequest.setPoiId(poiId);
verifyRequest.setEncryptedCodes(java.util.Collections.singletonList(req.getCouponCode()));
verifyRequest.setEncryptedCodes(Collections.singletonList(productIdMap.get("dyencryptedCode")));
CertificateVerifyResponse verifyResponse =douyinService.verify(verifyRequest);