shish пре 5 година
родитељ
комит
e3ef500552
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      app-pt/controllers/CashController.php

+ 2 - 1
app-pt/controllers/CashController.php

@@ -66,7 +66,8 @@ class CashController extends BaseController
             $getCashAmount = $cashAmount;
             //零售店提现需要扣除千分之六的手续费
             if ($ptStyle == dict::getDict('ptStyle', 'hd')) {
-                $getCashAmount = bcmul($cashAmount, 0.006, 2);
+                $tip = bcmul($cashAmount, 0.006, 2);
+                $getCashAmount = bcsub($cashAmount, $tip, 2);
             }
 
             if ($status != CashClass::STATUS_CHECK_YES) {