|
@@ -41,13 +41,7 @@ public class AppStoreWebhookServiceImpl implements AppStoreWebhookService {
|
|
|
return;
|
|
|
}
|
|
|
OrdersVO ordersVONew = ordersVOS.get(0);
|
|
|
- ProductVO productVO = ordersService.getProduct(ordersVONew.getProductId());
|
|
|
- BigDecimal price;
|
|
|
- if(StringUtils.isNotEmpty(ordersVONew.getCurrency())&&ordersVONew.getCurrency().equals("USD")){
|
|
|
- price = productVO.getPrice();
|
|
|
- }else{
|
|
|
- price = productVO.getCnyPrice();
|
|
|
- }
|
|
|
+ BigDecimal price = BigDecimal.valueOf(jwsTransactionDecodedPayload.getPrice()/1000);
|
|
|
webhookService.handleSubsequentAutomaticDeduction(price, thirdTradeNo, thirdOrderId,ordersVONew,payTime, jwsTransactionDecodedPayload.toString());
|
|
|
}
|
|
|
|