xialei 1 год назад
Родитель
Сommit
fcb1eccd81
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      app/common/repositories/store/order/StoreOrderRepository.php

+ 3 - 3
app/common/repositories/store/order/StoreOrderRepository.php

@@ -10001,14 +10001,14 @@ class StoreOrderRepository extends BaseRepository
10001 10001
 
10002 10002
                 $merchant_user_data = Db::name('user')->where('uid', $merchant_data['uid'])->find();
10003 10003
 
10004
-                if (!empty($merchant_user_data)) {
10004
+                if (!empty($merchant_data) && !empty($merchant_user_data)) {
10005 10005
 
10006 10006
 
10007 10007
                     $yj_amount_90 = round($pv * 0.035, 2) * 0.9;
10008 10008
                     $fgj_amount_10 = round($pv * 0.035, 2) * 0.1;//推广者的佣金抽10%到个人复购金
10009 10009
 
10010
-                    $yj_amount = $merchant_data['brokerage_price'] + $yj_amount_90;
10011
-                    $fgj_amount = $merchant_data['fugou'] + $fgj_amount_10;
10010
+                    $yj_amount = $merchant_user_data['brokerage_price'] + $yj_amount_90;
10011
+                    $fgj_amount = $merchant_user_data['fugou'] + $fgj_amount_10;
10012 10012
                     $this->fugou_user_log($merchant_data['uid'], $fgj_amount_10, $store_order_data['order_id'], 1, 1);
10013 10013
 
10014 10014