rabin преди 1 година
родител
ревизия
81457ac0b4
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      lib/Yspay.php

+ 1 - 1
lib/Yspay.php

@@ -169,7 +169,7 @@ class Yspay extends Core
 			foreach ($other as $k => $v) {
 				$subOrders = array();
 				if (isset($v['amount']) && $v['amount']) {
-					$subOrders['totalAmount'] = $v['amount'];
+					$subOrders['totalAmount'] = round($v['amount'] * 100, 2);
 					$request['platformAmount'] = round($request['platformAmount'] - $subOrders['totalAmount'], 2);
 				} elseif (isset($v['per']) && $v['per']) {
 					# 此处为兼容历史业务代码