@@ -100,8 +100,6 @@ class Pledge extends Api
}
Db::startTrans();
try {
-
// 质抵押订单
$res = $pledgeLogic::setPledgeOrder($pledge, $order_id, $this->auth->id, $count, $this->pay[$pay_type], $pledge[$this->pay[$pay_type]]);
@@ -218,7 +218,7 @@ class PledgeLogic
public static function isUserBalance(object $user, int $pay_type, string $pay)
{
$result = true;
- if ($pay_type == 1 && bcadd($user['token'], $user['frozen']) < $pay) $result = false;
+ if ($pay_type == 1 && bcadd($user['token'], $user['frozen'], 6) < $pay) $result = false;
if ($pay_type == 2 && $user['teac'] < $pay) $result = false;
return $result;