|
|
@@ -71,11 +71,11 @@ class ClearClass extends BaseClass
|
|
|
$data['customMobile'] = $customMobile;
|
|
|
$data['prePrice'] = $totalPrice;
|
|
|
$realPrice = $totalPrice;
|
|
|
- if ($data['modifyPrice']) {
|
|
|
- $modifyPrice = $data['modifyPrice'] ?? 0.00;
|
|
|
- if (is_numeric($modifyPrice) == false) {
|
|
|
+ if (isset($data['modifyPrice']) && !empty($data['modifyPrice'])) {
|
|
|
+ if (is_numeric($data['modifyPrice']) == false) {
|
|
|
util::fail('实收金额错误');
|
|
|
}
|
|
|
+ $modifyPrice = $data['modifyPrice'] ?? 0.00;
|
|
|
if ($modifyPrice > $totalPrice) {
|
|
|
util::fail('实收金额不能大于订单金额');
|
|
|
}
|