afa hai 11 meses
pai
achega
f60b00d98f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      application/api/controller/Order.php

+ 1 - 1
application/api/controller/Order.php

@@ -125,7 +125,7 @@ class Order extends Api
             if(empty($order_info)) throw new Exception(__("订单不存在"));
 
             $fee = getConfig('transfer_fee');
-            $feeAmount =   bcsub($params['price'] ,  bcmul($params['price'], $fee, 2), 2) ;
+            $feeAmount = bcmul($params['price'], $fee, 2) ;
             $order_data['user_id']    = $this->auth->id;
             $order_data['price']      = $params['price'];
             $order_data['product_id'] = $order_info['product_id'];