rabin 1 year ago
parent
commit
81457ac0b4
1 changed files with 1 additions and 1 deletions
  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']) {
 					# 此处为兼容历史业务代码