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

+ 1 - 0
lib/Yspay.php

@@ -138,6 +138,7 @@ class Yspay extends Core
 			$request['originalAmount'] = $other['oprice'] * 100;
 			$request['divisionFlag'] = true;
 			# 平台分账金额
+			$other['per'] = $other['per'] && $other['per'] >= 0 ? $other['per'] : 0;
 			$other['per'] = $other['per']/100;
 			$request['platformAmount'] = $request['totalAmount'] * $other['per'];
 			$request['subOrders'] = array();