shish před 5 roky
rodič
revize
78c8abcfe2

+ 5 - 0
app-pt/controllers/CashController.php

@@ -74,6 +74,11 @@ class CashController extends BaseController
                 $getAmount = bcsub($cashAmount, $tip, 2);
             }
 
+            if ($ptStyle == dict::getDict('ptStyle', 'ghs')) {
+                $tip = bcmul($cashAmount, 0.002, 2);
+                $getAmount = bcsub($cashAmount, $tip, 2);
+            }
+
             if ($status != CashClass::STATUS_CHECK_YES) {
                 CashClass::rollback($cash, $shop, $transaction, $cashAmount, $remark);
                 util::fail('已审核过');

+ 1 - 1
common/components/dict.php

@@ -10,7 +10,7 @@ class dict
     public static $data = [
 
         //余额满miniCashAmount才能提现
-        'miniCashAmount' => 5,
+        'miniCashAmount' => 10,
 
         //本条流水的余额是否可以提现
         'yeTx' => [