|
@@ -844,7 +844,7 @@ class ServicesController extends Curd
|
|
|
}
|
|
|
$params['order_config_json'] = json_encode($orderConfigJson);
|
|
|
// 写入订单
|
|
|
- $this->insertMain($params,$premises);
|
|
|
+ $this->insertMain($params, $premises);
|
|
|
|
|
|
// 买的单个服务
|
|
|
$writeOffDate = [];
|
|
@@ -1554,7 +1554,7 @@ class ServicesController extends Curd
|
|
|
$constituteList = array_column($params['pay_category_constitute_list'], 'amount', 'category');// 验证金额
|
|
|
$constituteAmount = 0;
|
|
|
foreach ($params['pay_category_constitute_list'] as $item) {
|
|
|
- $constituteAmount = $constituteAmount + $item['amount'];
|
|
|
+ $constituteAmount = sprintf("%.2f", $constituteAmount) + sprintf("%.2f", $item['amount']);
|
|
|
}
|
|
|
if ($params['order_amount_pay'] != $constituteAmount) {
|
|
|
throw new BusinessException('组合支付金额与应付金额不一致');
|