dever преди 3 години
родител
ревизия
2fde839f4d
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      lib/Yspay.php

+ 1 - 0
lib/Yspay.php

@@ -220,6 +220,7 @@ class Yspay extends Core
 		
 		if (isset($order['param']['other']) && $order['param']['other']) {
 			$other = $order['param']['other'];
+			$other['per'] = $other['per'] && $other['per'] >= 0 ? $other['per'] : 0;
 			$other['per'] = $other['per']/100;
 			$request['platformAmount'] = $request['refundAmount'] * $other['per'];
 			$request['subOrders'] = array();