Merge branch 'master' of https://gitee.com/wjl2008_admin/nuttyreading-java into zcc
This commit is contained in:
@@ -80,9 +80,6 @@ public class UserVipController {
|
||||
String timeId = IdWorker.getTimeId().substring(0, 32);
|
||||
buyOrder.setOrderSn(timeId);
|
||||
buyOrder.setUserId(uid);
|
||||
if(buyOrder.getCome()==1){
|
||||
buyOrder.setAppName("zmzm");
|
||||
}
|
||||
buyOrderService.save(buyOrder);
|
||||
BigDecimal totalPrice = buyOrder.getRealMoney();
|
||||
if (Constants.PAYMENT_METHOD_VIRTUAL.equals(buyOrder.getPaymentMethod())) {
|
||||
@@ -112,7 +109,14 @@ public class UserVipController {
|
||||
paymentInfo.setOrderSn(buyOrderEntity.getOrderSn());
|
||||
paymentInfo.setBuyOrderId(buyOrderEntity.getOrderId());
|
||||
paymentInfo.setTotalAmount(buyOrderEntity.getRealMoney());
|
||||
paymentInfo.setAppName(buyOrder.getAppName());
|
||||
// paymentInfo.setAppName(buyOrder.getAppName());
|
||||
if (buyOrder.getCome()==2){
|
||||
paymentInfo.setAppName("wumen");
|
||||
} else if (buyOrder.getCome()==1) {
|
||||
paymentInfo.setAppName("zmzm");
|
||||
}else {
|
||||
paymentInfo.setAppName(buyOrder.getAppName());
|
||||
}
|
||||
wxpayService.prepay(paymentInfo);
|
||||
}
|
||||
rabbitTemplate.convertAndSend(
|
||||
|
||||
Reference in New Issue
Block a user