|
@@ -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();
|