|
|
@@ -374,7 +374,7 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
|
|
|
if (shopConfig != null) {
|
|
|
shopId = shopConfig.getAppId();
|
|
|
}
|
|
|
- orderDon.setType(OrderDon.Type.ALI_PAY);
|
|
|
+ orderDon.setType(OrderDon.Type.WeChat);
|
|
|
orderDon.setShopId(shopId);
|
|
|
this.updateById(orderDon);
|
|
|
H5JsPayParams params = weChatService.getJsPayParams(
|
|
|
@@ -412,6 +412,7 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
|
|
|
shopId = shopConfig.getAppId();
|
|
|
}
|
|
|
orderDon.setShopId(shopId);
|
|
|
+ orderDon.setType(OrderDon.Type.WeChat);
|
|
|
this.updateById(orderDon);
|
|
|
|
|
|
H5JsPayParams params = weChatService.getJsPayParams(
|
|
|
@@ -1416,6 +1417,15 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
|
|
|
Integer rate = 0;
|
|
|
if (userDistribute == null) {
|
|
|
if (goodsDon != null) {
|
|
|
+ //普通分销者 是否享受过该用户的首单分销
|
|
|
+ DistributeWaitingSendPoints isReceived = distributeWaitingSendPointsMapper.selectOne(Wrappers.lambdaQuery(DistributeWaitingSendPoints.class)
|
|
|
+ .eq(DistributeWaitingSendPoints::getSharedId, userDistributeShared.getSharedId())
|
|
|
+ .eq(DistributeWaitingSendPoints::getUserId, order.getUserId())
|
|
|
+ .in(DistributeWaitingSendPoints::getSendStatus, List.of(DistributeWaitingSendPoints.Status.waiting.name(), DistributeWaitingSendPoints.Status.success.name()))
|
|
|
+ .last("limit 1"));
|
|
|
+ if (isReceived != null) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
rate = goodsDon.getRate();
|
|
|
//实物分销比例
|
|
|
if (goodsDon.getType() == 2) {
|