Browse Source

fix 上游对账

stanley-king 2 năm trước cách đây
mục cha
commit
a21e35c9e1
1 tập tin đã thay đổi với 1 bổ sung3 xóa
  1. 1 3
      helper/statistics/refill_balance.php

+ 1 - 3
helper/statistics/refill_balance.php

@@ -246,14 +246,12 @@ class refill_balance
             $in = $transfer_calcer($transfer_detail);
             $balance = ncPriceFormat($in - $order_stat['mch_amounts']);
         } else {
-            $transfer_detail = [];
             $pid = $this->mStoreidPID[$cid];
             $pay_time = $this->provider_paytime_finder($pid, $start,$end);
             $out = $this->provider_amount_stat($pid, $pay_time, $end);
             $cname = $this->mProviderNames[$cid];
 
-            $in = $transfer_calcer($transfer_detail);
-            $balance = ncPriceFormat($in - $order_stat['channel_amounts']);
+            $balance = ncPriceFormat($out - $order_stat['channel_amounts']);
         }
 
         if ($start == 0) {